[−][src]Trait packed_struct::PrimitiveEnum
An enum type that can be packed or unpacked from a simple primitive integer.
Associated Types
type Primitive: PartialEq + Sized + Copy + Debug
The primitve type into which we serialize and deserialize ourselves.
Required methods
fn from_primitive(val: Self::Primitive) -> Option<Self>
Convert from a primitive, might fail.
fn to_primitive(&self) -> Self::Primitive
Convert to a primitive value.
fn from_str(s: &str) -> Option<Self>
Convert from a string value representing the variant. Case sensitive.
fn from_str_lower(s: &str) -> Option<Self>
Convert from a string value representing the variant. Lowercase.
Implementors
impl<E> PrimitiveEnum for EnumCatchAll<E> where
E: PrimitiveEnum,
[src]
E: PrimitiveEnum,