Skip to main content

unwrap_some

Macro unwrap_some 

Source
macro_rules! unwrap_some {
    ($actual:expr) => { ... };
    ($actual:expr, $msg:expr) => { ... };
}
Expand description

Asserts that the expression evaluates to Option::Some and returns the resulting value, otherwise short-circuits.