Crate num_variants
source ·Expand description
Add an associated constant to an enum describing the number of variants it has.
Derive Macros
- Derives an associated constant with the number of variants this enum has.
Add an associated constant to an enum describing the number of variants it has.