risingwave_common::error::macros

Macro must_match

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