unwrap_ok

Macro unwrap_ok 

Source
macro_rules! unwrap_ok {
    ($expr:expr) => { ... };
}
Expand description

Takes a Result and returns the unwrapped Ok value, or panics if it’s Err.

See also unwrap_some! and expect_ok!.