#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

#41 in Data structures

Download history 99038/week @ 2024-08-13 117076/week @ 2024-08-20 102304/week @ 2024-08-27 95288/week @ 2024-09-03 87677/week @ 2024-09-10 85095/week @ 2024-09-17 86620/week @ 2024-09-24 85588/week @ 2024-10-01 85884/week @ 2024-10-08 100472/week @ 2024-10-15 92180/week @ 2024-10-22 96820/week @ 2024-10-29 87708/week @ 2024-11-05 110078/week @ 2024-11-12 102861/week @ 2024-11-19 66627/week @ 2024-11-26

383,743 downloads per month
Used in 772 crates (107 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