[−][src]Trait int_enum::IntEnum
Trait used for implementations of integer and enum conversions.
Associated Types
type Int: PrimInt
Primitive integer type for conversions.
Required methods
fn to_int(&self) -> Self::Int
Returns the integer value of the enum.
fn from_int(n: Self::Int) -> Result<Self, IntEnumError<Self>>
Converts an integer into the enum.