Derive Macro FromVariant

Source
#[derive(FromVariant)]
Available on crate features __ecma and __utils only.
Expand description

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