#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

#42 in Data structures

Download history 95332/week @ 2024-07-28 104117/week @ 2024-08-04 97311/week @ 2024-08-11 122291/week @ 2024-08-18 102745/week @ 2024-08-25 94466/week @ 2024-09-01 92085/week @ 2024-09-08 83266/week @ 2024-09-15 87254/week @ 2024-09-22 86856/week @ 2024-09-29 87092/week @ 2024-10-06 96552/week @ 2024-10-13 92699/week @ 2024-10-20 96511/week @ 2024-10-27 86852/week @ 2024-11-03 108505/week @ 2024-11-10

389,142 downloads per month
Used in 769 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