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.
macro_rules! impl_from_enum {
($enum:ident::$variant:ident($ty:ty)) => { ... };
}Implement From and TryFrom to wrap/unwrap enum variants with a single payload.