Macro tectonic_errors::prelude::a_ok_or
source · macro_rules! a_ok_or { ($option:expr ; $( $annotation:tt )+) => { ... }; }
Expand description
“annotated ok_or” — like Option::ok_or_else()?
, but with the ability to
add extended context to the error. This yields an AnnotatedMessage
as its
error type.