Crate const_enum_tools

Crate const_enum_tools 

Source

Traitsยง

VariantCount
An enum trait that shows a count of its variants.
VariantList
An enum trait that allows getting the index of its variant and thereby the name of the variant.