Crate num_enum_derive

Source

Derive Macrosยง

Default
Implements core::default::Default for a #[repr(Primitive)] enum.
FromPrimitive
Implements From<Primitive> for a #[repr(Primitive)] enum.
IntoPrimitive
Implements Into<Primitive> for a #[repr(Primitive)] enum.
TryFromPrimitive
Implements TryFrom<Primitive> for a #[repr(Primitive)] enum.
UnsafeFromPrimitive
Generates a unsafe fn unchecked_transmute_from(number: Primitive) -> Self associated function.