macro_rules! unwrap_res_or {
($e:expr, |$($pati:pat)?| $v:expr) => { ... };
($e:expr, $v:expr) => { ... };
}
👎Deprecated since 0.2.1: Use
konst::result::unwrap_or
, or konst::result::unwrap_or_else
insteadExpand description
For unwrapping Result
s in const contexts, with a default value when it’s an error.