Trait value_from_type_traits::IntoEnum
[−]
[src]
pub trait IntoEnum<E> { fn into_enum() -> E; }
Reflexive implementation on [FromType
].
Developers are encouraged to implement [FromType
], because [IntoEnum
]
is automatically derived from that definition.
Required Methods
fn into_enum() -> E
Implementors
impl<T, E> IntoEnum<E> for T where
E: FromType<T>,