Crate enum_from_variant

source ·
Expand description

Rust Derive Impl from enum

Derive Macros§

  • enum-from-variant crate provides the EnumFromVariant macro, which simplifies the generation of the From<T> trait for converting one enum variant to another enum variant. This is particularly useful when you need to handle error conversions or map different enum types in your Rust code.