Crate enum_from_variant
source ·Expand description
Rust Derive Impl from enum
Derive Macros§
enum-from-variantcrate provides theEnumFromVariantmacro, which simplifies the generation of theFrom<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.