Macro try_or::try_or_else
[−]
[src]
macro_rules! try_or_else { ( $expr:expr , $or_fn:expr ) => { ... }; }
Unwraps a Result
. If the result is Err
, calls the function $or_fn
with
its value and returns early with its result.