macro_rules! unwrap_ok {
($actual:expr) => { ... };
($actual:expr, $msg:expr) => { ... };
}Expand description
Asserts that the expression evaluates to Result::Ok and returns the resulting value, otherwise short-circuits.
macro_rules! unwrap_ok {
($actual:expr) => { ... };
($actual:expr, $msg:expr) => { ... };
}Asserts that the expression evaluates to Result::Ok and returns the resulting value, otherwise short-circuits.