Crate num_enum

source ·
Expand description

See https://docs.rs/num_enum for more info about this crate.

Structs§

Traits§

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