rust-dense-bitset

Latest version Documentation Build Status Long time support rustc version License

Efficient and flexible self-contained bitset rust library.

The library is safe rust only, fully documented, and uses the most efficient algorithms whenever possible.

Implementations

Usage

```rust use rustdensebitset::{BitSet, DenseBitSetExtended};

let mut bs = DenseBitSetExtended::from_string( String::from("f001eddadf411eddec0de5ca1ab1ec0feefeeb1e01dc0b01"), 16, );

let bs2 = DenseBitSetExtended::from_string( String::from("0J2aG5BaMRS443FEBRGS5DTMV2A"), 32 );

bs = bs.rotr(17) | (bs2 << 43); bs.set_bit(123, true);

println!("{}", bs.subset(3, 64).to_string()); ```

Known limits and caveats

Running the tests

Each individual function is tested. Run the tests with

cargo test

Running the benchmarks

The Criterion dependency is used to provide precise benchmarkings. Benchmarks can be run with cargo bench

Documentation

Generate the documentation with

cargo doc

License

This project is licensed under the MIT License - see the LICENSE.md file for details