12 releases (5 stable)
1.1.1 | Feb 9, 2024 |
---|---|
1.1.0 | Dec 29, 2023 |
1.0.2 | Nov 3, 2023 |
1.0.1 | Oct 14, 2023 |
0.1.2 | Dec 8, 2022 |
#555 in Rust patterns
41 downloads per month
9KB
193 lines
binf, Binary Flags
This crate aims to make working with binary/bit flags easier. It also provides a macro to add similar functionality to zig's packed structs with boolean fields.
i suggest looking at tests.rs for examples
lib.rs
:
binf, Binary flags
This crate aims to make working with binary/bit flags easier. It also provides a macro to add similar functionality to zig's packed structs with boolean fields.
Dependencies
~0.4–0.9MB
~20K SLoC