match_effect!() { /* proc-macro */ }Expand description
Enum match helper — prefix variant patterns with EnumPath for exhaustiveness checking.
ⓘ
match_effect!(Color, value, {
Red(n) => n,
Green => 0,
Blue => 1,
})