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