Macro try_or::try_opt_or_else
[−]
[src]
macro_rules! try_opt_or_else { ( $expr:expr , $or_fn:expr ) => { ... }; }
Unwraps an Option
. If the result is None
, calls the function $or_fn
and returns its result.