macro_rules! as_expr_or_err {
($opt:expr, $error_msg:expr) => { ... };
}Expand description
Macro to unwrap an Option
This macro is designed for use in functions that return Result<T, anyhow::Error>.
§Usage
ⓘ
let expr = as_expr_or_err!(result_value, "Argument not expression");§Arguments
$opt: The EvaluateResultValue to unwrap$error_msg: Error message string literal