Skip to main content

Crate indexed_valued_enums_derive

Crate indexed_valued_enums_derive 

Source

Macros§

DefineEnumValuedFromCSV

Attribute Macros§

EnumIndexed
This macro automatically implements the Indexed, IndexedWithVariant, and Fieldless traits, which allows you to get an enum’s variant through it’s index, or to get the index from a variant.
EnumValued
This macro allows you to associate a value to the variants of an enum, turning the operation from a O(N) operation to O(1)’. This is applied on functions with this signature:

Derive Macros§

EnumValuedFromCSV
Declaration
IndexedHelper