Attribute Macros§
- from_
to_ other from_to_other
- Derives
From
implementations for an enumeration and a specified type. Unknown values are mapped to an Other variant (which can have a custom name).
Derive Macros§
- From
ToRepr - Derives
TryFrom
andFrom
implementations for the representation type of an enumeration.