match_some_return

Macro match_some_return 

Source
macro_rules! match_some_return {
    ($opt:expr) => { ... };
    ($opt:expr,$r:expr) => { ... };
}
Expand description

match Option
if is Some, will be return value
if is Nome, will be return custom value and exit method