macro_rules! extract_variant {
( $e:expr_2021, $( $variant:path )|* ) => { ... };
}Expand description
Extracts the payload from any listed tuple variant into an Option.
The expression is matched once, and a listed variant returns
Some(payload). Every other variant returns None.