#enums #variant #value #index #endex

macro endex_derive

get index of enum variant by enum value

1 unstable release

0.1.0 Nov 29, 2024

#2246 in Procedural macros

Download history 95/week @ 2024-11-24 30/week @ 2024-12-01

125 downloads per month
Used in endex

MIT license

4KB
54 lines

endex

get index of enum variant by enum value even enums that contain data

Dependencies

~220–660KB
~16K SLoC