Macro soma::try_some [] [src]

macro_rules! try_some {
    ($expr:expr) => { ... };
    ($expr:expr => return) => { ... };
}

Helper macro for unwrapping Option values while returning early from function if value is None. try_some!(expr) should be used only if function return type is Option and try_some!(expr => return) should be used only if function return type is ().