n0_error

Macro try_or

Source
macro_rules! try_or {
    ($result:expr, $($tt:tt)*) => { ... };
}
Expand description

Unwraps a result, returning in the error case while converting the error.

If the result is the error variant, this will construct a new error with e that takes the result’s error as its source.