Skip to main content

Err

Macro Err 

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

Wraps a provided error kind and optional description in an error.

This is equivalent to typing Err(err!(...)). See the err! macro for more information.

NOTE: The Err! macro does not conflict with the Err result variant. You can mix your usage of these two items if you want to.

If you don’t like using this macro, that’s totally fine as well. :)