Expand description
enum-info is a crate to generate an enum impl which can tell you the
number of – and, in most cases, list the – variants in an enum.
Attribute Macros§
- enum_
info - Generates an item
implwith a guaranteedvariant_countmethod and an associated constant,VARIANTS, for enums whose variants are all unit-like.