#enum #bitset

enumset

A library for creating compact sets of enums

26 releases

✓ Uses Rust 2018 edition

new 0.4.5 Feb 19, 2020
0.4.4 Oct 12, 2019
0.4.2 Sep 29, 2019
0.4.0 May 7, 2019
0.3.2 Nov 29, 2017

#30 in Data structures

Download history 6990/week @ 2019-11-07 5821/week @ 2019-11-14 5378/week @ 2019-11-21 6384/week @ 2019-11-28 8005/week @ 2019-12-05 6320/week @ 2019-12-12 2731/week @ 2019-12-19 2451/week @ 2019-12-26 5695/week @ 2020-01-02 6971/week @ 2020-01-09 6863/week @ 2020-01-16 6989/week @ 2020-01-23 7333/week @ 2020-01-30 7318/week @ 2020-02-06 6794/week @ 2020-02-13

25,990 downloads per month
Used in 43 crates (6 directly)

MIT/Apache

22KB
349 lines

enumset

Build Status Latest Version Requires rustc 1.31+ 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.8–1.2MB
~26K SLoC