Crate num_enum_derive[][src]

Derive Macros

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 from_unchecked (number: Primitive) -> Self associated function.