Macro impl_from_enum

Source
macro_rules! impl_from_enum {
    ($enum:ident::$variant:ident($ty:ty)) => { ... };
}
Expand description

Implement From and TryFrom to wrap/unwrap enum variants with a single payload.