magiclen/enum-ordinalize
This library enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.
RustMIT
This library enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.
RustMIT