enum_set2 0.1.1

A bit-set indexed by enum variants.
Documentation
  • Coverage
  • 100%
    31 out of 31 items documented0 out of 25 items with examples
  • Size
  • Source code size: 10.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.72 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Badel2/enum_vec
    5 0 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Badel2

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.