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
:
toml
[dependencies]
bitarr = "0"
```rust use bitarr::BitSet;
let mut bs = BitSet::from(0u16); bs.set(3); bs.set(7);
asserteq!(bs.get(3), Some(true)); asserteq!(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.