Expand description
A set of procedural macros for deriving useful functionality on enums.
Derive Macrosยง
- FromStr
- Derives
FromStr
for 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, whereRepr
is a primitive representation specified in#[repr(...)]
.