Macro time::internal_macros::expect_opt

source ยท
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.