Expand description
A set for enum variants
It is implemented as a wrapper over the bit-set crate,
which provides a set for integers values. We use the EnumLike trait
from the enum_like crate which allows for a conversion between enum
variant and integer value.
Since an EnumSet is a wrapper over a BitSet, and a BitSet is
a wrapper over a BitVec, looking at the assembly generated by this crate
should be interesting.
Structs§
- EnumSet
- A
BitSetindexed by anEnumLiketype. - Wrap
Iter - Wraps an iterator from the
bit-setcrate, mapping the output fromusizetoE: EnumLike.
Type Aliases§
- Difference
- Iterator over the
&EnumSet - Intersection
- Iterator over the
&EnumSet - Iter
- Iterator over the
&EnumSet - Symmetric
Difference - Iterator over the
&EnumSet - Union
- Iterator over the
&EnumSet