#enums #bitset #set-bit

no-std enumset

A library for creating compact sets of enums

45 releases (19 stable)

1.1.5 Jul 22, 2024
1.1.3 Oct 11, 2023
1.1.2 May 10, 2023
1.0.12 Oct 3, 2022
0.3.2 Nov 29, 2017

#40 in Data structures

Download history 101424/week @ 2024-07-18 88844/week @ 2024-07-25 99906/week @ 2024-08-01 110692/week @ 2024-08-08 106689/week @ 2024-08-15 108369/week @ 2024-08-22 95225/week @ 2024-08-29 97198/week @ 2024-09-05 83900/week @ 2024-09-12 88641/week @ 2024-09-19 90164/week @ 2024-09-26 79479/week @ 2024-10-03 92904/week @ 2024-10-10 96642/week @ 2024-10-17 94042/week @ 2024-10-24 93398/week @ 2024-10-31

390,693 downloads per month
Used in 765 crates (106 directly)

MIT/Apache

82KB
1.5K SLoC

enumset

Build Status Latest Version Requires rustc 1.61+ 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.3MB
~28K SLoC