swc_core::ecma::utils::swc_common

Derive Macro FromVariant

#[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.