Derive Macro FromVariant

Source
#[derive(FromVariant)]
{
    // Attributes available to this derive:
    #[from_variant]
}
Expand description

Derives From for all variants. This only supports an enum where every variant has a single field.