time::internal_macros

Macro 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.