Expand description
Rust Derive Impl from enum
Derive Macrosยง
- Enum
From Variant enum-from-variant
crate provides theEnumFromVariant
macro, 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.