Glossary: Rust Beyond the Basics
unwrap
Also written: unwrap_err
Takes the value out of an `Ok` or `Some` and panics otherwise. `unwrap_err` does the opposite for a `Result`, giving the error inside an `Err`.
Glossary: Rust Beyond the Basics
Also written: unwrap_err
Takes the value out of an `Ok` or `Some` and panics otherwise. `unwrap_err` does the opposite for a `Result`, giving the error inside an `Err`.