[−][src]Trait int_enum::IntEnum
Trait used for implementations of integer and enum conversions.
Associated Types
Loading content...Required methods
fn as_int(&self) -> Option<Self::Int>
Gets the integer value of the enum.
fn from_int(int: Self::Int) -> Option<Self> where
Self: Sized,
Self: Sized,
Gets the enum type for the given integer.