assert_some

Macro assert_some 

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

Assert that an Option is Some

If the provided expresion evaulates to Some, then the macro returns the value contained within the Some. If the Option is None then the macro will panic with a message that includes the expression