enum-utils
A set of procedural macros for deriving useful functionality on enums.
See the API docs for more information.
FromStr
An efficient, configurable FromStr
implementation for C-like enums.
assert_eq!;
assert_eq!;
IterVariants
A static method returning an iterator over the variants of an enum.
use *;
assert_eq!;
TryFromRepr
and ReprFrom
Conversion to and from the discriminant of a C-like enum.
use TryInto;
use *;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;