macro_rules! expect_opt {
($e:expr, $message:literal) => { ... };
}
Expand description
Try to unwrap an expression, panicking if not possible.
This is similar to $e.expect($message)
, but is usable in const
contexts.
macro_rules! expect_opt {
($e:expr, $message:literal) => { ... };
}
Try to unwrap an expression, panicking if not possible.
This is similar to $e.expect($message)
, but is usable in const
contexts.