unwrap_ok_or_return

Macro unwrap_ok_or_return 

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

Takes a Result and evaluates to the unwrapped Ok value, or if it’s Err, returns the Err to the current function’s caller.

See also unwrap_some_or_return!.