n0_error

Macro bail

Source
macro_rules! bail {
    ($($tt:tt)*) => { ... };
}
Expand description

Returns an error result by constructing an error with [anyerr].

This macro accepts the same forms as [anyerr], but wraps the error into Err and expands to returning the result from the current function.