Expand description
Silly enum helpers.
Derive Macrosยง
- Name
- Generate a method
name(&self) -> &'static str
that returns the name of a given enum variant. - Name
Plural - Generate a method
name_plural(&self) -> &'static str
that returns the pluralized name of a given enum variant. - Variants
- Generates inherent constants and an iterator method to enable iterating and indexing the enum variants.