[−][src]Trait lain::traits::ToPrimitive
Represents a type which can be converted to a primitive type. This should be used for enums
so that the serializer can generically call YourEnum::ToPrimitive()
Associated Types
type Output
Required methods
fn to_primitive(&self) -> Self::Output
Implementors
impl<E, T> ToPrimitive for UnsafeEnum<E, T> where
E: ToPrimitive<Output = T>,
T: Copy,
[src]
E: ToPrimitive<Output = T>,
T: Copy,