#enum #bitset

enumset

A library for creating compact sets of enums

35 releases (9 stable)

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

#42 in Data structures

Download history 26629/week @ 2021-09-26 26247/week @ 2021-10-03 23583/week @ 2021-10-10 22233/week @ 2021-10-17 20219/week @ 2021-10-24 21816/week @ 2021-10-31 24447/week @ 2021-11-07 29638/week @ 2021-11-14 21034/week @ 2021-11-21 22980/week @ 2021-11-28 21339/week @ 2021-12-05 26029/week @ 2021-12-12 17865/week @ 2021-12-19 8886/week @ 2021-12-26 24933/week @ 2022-01-02 31374/week @ 2022-01-09

84,342 downloads per month
Used in 149 crates (28 directly)

MIT/Apache

36KB
626 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
~23K SLoC