#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

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

#1050 in Rust patterns

Download history 350/week @ 2024-11-22 38/week @ 2024-11-29 8/week @ 2024-12-06

396 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