#enum #bitset

enumset

A library for creating compact sets of enums

34 releases (8 stable)

1.0.7 Jul 5, 2021
1.0.6 Feb 27, 2021
1.0.3 Jan 27, 2021
1.0.1 Aug 9, 2020
0.3.2 Nov 29, 2017

#18 in Data structures

Download history 19118/week @ 2021-06-06 21723/week @ 2021-06-13 23149/week @ 2021-06-20 22179/week @ 2021-06-27 21230/week @ 2021-07-04 18559/week @ 2021-07-11 21703/week @ 2021-07-18 23416/week @ 2021-07-25 27391/week @ 2021-08-01 25132/week @ 2021-08-08 24273/week @ 2021-08-15 20982/week @ 2021-08-22 19729/week @ 2021-08-29 17254/week @ 2021-09-05 23356/week @ 2021-09-12 25139/week @ 2021-09-19

86,971 downloads per month
Used in 128 crates (17 directly)

MIT/Apache

53KB
948 lines

enumset

Build Status Latest Version Requires rustc 1.34+ Rust Documentation

A library for defining enums that can be used in compact bit sets. It supports enums up to 128 variants, and has a macro to use these sets in constants.

See the documentation for more information.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in enumset by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.6–1MB
~24K SLoC