Crate enum_macros
source ·Expand description
A collection of useful macros that make working with enums easier.
Attribute Macros§
- Adds support for custom enum “discriminants” of other types than
isize
. - Adds a method for advancing to the next enum variant. Wraps around at the last element.
- Adds a constant storing the amount of variants the enum has to the enum.