Crate variant_set

Source

Structs§

VariantSet
A set of values that are variants of an enum. The set can contain at most one value for each variant. Functionally equivalent to a HashSet<T>, but the enum variants can contain complex data.

Traits§

VariantEnum
A trait that must be implemented by enums that are used with VariantSet.

Derive Macros§

VariantEnum
Derives a _Variant enum for the given enum, and derives the VariantEnum trait.