Expand description
A set of procedural macros for deriving useful functionality on enums.
Derive Macrosยง
- Derives
FromStr
for C-like enums. - Derives a static method,
iter()
, which iterates over the variants of an enum. - Derives
TryFrom<Repr>
for a C-like enum, whereRepr
is a primitive representation specified in#[repr(...)]
.