| Crates.io | bitarr |
| lib.rs | bitarr |
| version | 0.2.0 |
| created_at | 2023-01-29 17:38:47.202841+00 |
| updated_at | 2023-02-04 22:43:10.296657+00 |
| description | A fast and efficient Rust implementation of a BitSet, supporting multiple backing stores |
| homepage | |
| repository | https://github.com/YoloDev/bitarr |
| max_upload_size | |
| id | 771123 |
| size | 46,662 |
A fast and efficient Rust implementation of a BitSet, supporting multiple backing stores.
To use BitArr in your project, add the following to your Cargo.toml:
[dependencies]
bitarr = "0"
use bitarr::BitSet;
let mut bs = BitSet::from(0u16);
bs.set(3);
bs.set(7);
assert_eq!(bs.get(3), Some(true));
assert_eq!(bs.get(7), Some(true));
assert_eq!(bs.get(2), Some(false));
API documentation can be found on docs.rs.
BitArr is distributed under the terms of the MIT license.
See LICENSE for details.