#enums #bitset #set-bit

no-std enumset

A library for creating compact sets of enums

43 releases (17 stable)

1.1.3 Oct 11, 2023
1.1.2 May 10, 2023
1.0.12 Oct 3, 2022
1.0.11 Apr 12, 2022
0.3.2 Nov 29, 2017

#49 in Data structures

Download history 66654/week @ 2024-01-09 66770/week @ 2024-01-16 68726/week @ 2024-01-23 75884/week @ 2024-01-30 71130/week @ 2024-02-06 67534/week @ 2024-02-13 63693/week @ 2024-02-20 66225/week @ 2024-02-27 70312/week @ 2024-03-05 81109/week @ 2024-03-12 70359/week @ 2024-03-19 77272/week @ 2024-03-26 79283/week @ 2024-04-02 79595/week @ 2024-04-09 83262/week @ 2024-04-16 64771/week @ 2024-04-23

320,521 downloads per month
Used in 660 crates (86 directly)

MIT/Apache

74KB
1.5K SLoC

enumset

Build Status Latest Version Requires rustc 1.56+ Rust Documentation

A library for defining enums that can be used in compact bit sets. It supports serde and #[no_std] environments, and has basic support for using EnumSets 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–1.5MB
~32K SLoC