macro_rules! must_match { ($expression:expr, $(|)? $( $pattern:pat_param )|+ $( if $guard: expr )? => $action:expr) => { ... }; }
Expand description
Match an enum variant and return the internal value.
Panic if the enum variant does not match.
macro_rules! must_match { ($expression:expr, $(|)? $( $pattern:pat_param )|+ $( if $guard: expr )? => $action:expr) => { ... }; }
Match an enum variant and return the internal value.
Panic if the enum variant does not match.