#enums #variant #unknown #say #macro #rust #yikes

yikes-intenum

Augment integer-based enums with an unknown variant; a macro that makes you say "yikes!"

1 unstable release

new 0.0.4 Nov 25, 2024
0.0.3 Nov 25, 2024
0.0.2 Nov 25, 2024
0.0.1 Nov 25, 2024

#1131 in Rust patterns

30 downloads per month

0BSD license

20KB
449 lines

yikes-intenum

augment integer-based enums with an unknown variant; a macro that makes you say "yikes!"


lib.rs:

A macro for mapping integers to Rust enums with integer-numbered variants, plus a catch-all Unknown variant.

Dependencies