#enum #bitset

enumset

A library for creating compact sets of enums

38 releases (12 stable)

1.0.12 Oct 3, 2022
1.0.11 Apr 12, 2022
1.0.8 Nov 5, 2021
1.0.7 Jul 5, 2021
0.3.2 Nov 29, 2017

#25 in Data structures

Download history 81975/week @ 2022-10-11 66098/week @ 2022-10-18 54266/week @ 2022-10-25 48778/week @ 2022-11-01 45120/week @ 2022-11-08 64371/week @ 2022-11-15 36849/week @ 2022-11-22 51478/week @ 2022-11-29 52785/week @ 2022-12-06 53018/week @ 2022-12-13 35807/week @ 2022-12-20 25152/week @ 2022-12-27 41426/week @ 2023-01-03 48490/week @ 2023-01-10 40717/week @ 2023-01-17 39727/week @ 2023-01-24

175,772 downloads per month
Used in 335 crates (47 directly)

MIT/Apache

48KB
773 lines

enumset

Build Status Latest Version Requires rustc 1.36+ 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.5–1.2MB
~26K SLoC