bv-rs: bit-vectors and bit-slices for Rust
The main type exported by the library,
BitVec, is a packed, growable bit-vector. Its API mirrors that of
Vec where reasonable. The library also defines slice operations that return
BitSliceMut, akin to Rust’s array slices but for bit-vectors. A common API to bit-vectors and bit-slices is provided by the
BitsPush traits, which also allow treating as bit-vectors all primitive unsigned integer types (
uN), and vectors and slices thereof, as well as unpacked vectors and slices of
It’s on crates.io, so you can add
[dependencies] bv = "0.11.1"
extern crate bv;
to your crate root.
This crate supports Rust version 1.31 and newer.