Macro unnest::ok_or_return_err
source · [−]macro_rules! ok_or_return_err {
($expr:expr) => { ... };
}Expand description
Return the error if a Result expression evaluates to Err.
A light-weight version of the question mark operator ?.
See also: https://twitter.com/mitsuhiko/status/1574111445473579008