Macro near_primitives::unwrap_or_return
source · macro_rules! unwrap_or_return { ($obj: expr, $ret: expr) => { ... }; ($obj: expr) => { ... }; }
Expand description
Macro to either return value if the result is Ok, or exit function logging error.