risingwave_common

Macro try_match_expand

source
macro_rules! try_match_expand {
    ($e:expr, $variant:path) => { ... };
    ($e:expr, $variant:path, $($arg:tt)+) => { ... };
}
Expand description

Try to match an enum variant and return the internal value.

Return an anyhow::Error if the enum variant does not match.