[][src]Crate enum_utils

A set of procedural macros for deriving useful functionality on enums.

Derive Macros

FromStr

Derives FromStr for C-like enums.

IterVariants

Derives a static method, iter(), which iterates over the variants of an enum.

ReprFrom

Derives From<Enum> for the primitive representation specified in #[repr(...)].

TryFromRepr

Derives TryFrom<Repr> for an enum, where Repr is a primitive representation specified in #[repr(...)].