This crate offers some tools to deal with static enums. It offers a way to declare a simple
enum, which then offers e.g. values()
which can be used to iterate over the values of the enum.
In addition, it offers a type EnumMap
which is an array-backed map from enum values to some type.
It offers a macro plain_enum_mod
which declares an own module which contains a simple enum
and the associated functionality:
Internally, the macro generates a simple enum whose numeric values start counting at 0.