Derive Macrosยง
- Deep
Variants - Create a const array with all possible values of an enum.
Target must be an
enum, and each variant of the target must be of nested unit type. A variant is of nested unit type if it is either: - Enum
From - Derive From implementations for an enum from variants.
- Into
Ancestors - Derive
From<Self>for every enum mentioned in an#[ancestors(Parent::Variant)]attribute.