AmitKumarDas / Decisions

Apache License 2.0
10 stars 3 forks source link

Rust: unwrap && panic #172

Open AmitKumarDas opened 5 years ago

AmitKumarDas commented 5 years ago

:nerd_face: Panic is embedded in the calls to unwrap

:spiral_notepad: To “unwrap” something in Rust is to say, “Give me the result of the computation, and if there was an error, panic and stop the program.”

:bulb: Explore the Option and Result types. Both have a method called unwrap defined on them.