Crate num_enum_derive
source ·Derive Macros§
- Implements
core::default::Default
for a#[repr(Primitive)] enum
. - Implements
From<Primitive>
for a#[repr(Primitive)] enum
. - Implements
Into<Primitive>
for a#[repr(Primitive)] enum
. - Implements
TryFrom<Primitive>
for a#[repr(Primitive)] enum
. - Generates a
unsafe fn unchecked_transmute_from(number: Primitive) -> Self
associated function.