n0_error

Macro try_or_any

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

Unwraps a result, returning in the error case while adding context to the error.

If the result is the error variant, this will construct a new error with anyerr from the result’s error while providing additional context.