bitm
is the Rust library by Piotr Beling for bit and bitmap (bit vector) manipulation.
Example
use ;
let mut b = Box:: with_zeroed_bits; // b can store 2048 bits
assert_eq!; // b is zeroed so bit at index 100 is not set
b.set_bit; // set the bit
assert_eq!; // now it is set
assert_eq!; // 5 bits, beginning from index 99, should be 00010
let = build;
assert_eq!; // one bit is set in b
assert_eq!; // no ones in the first 100 bits of b
assert_eq!; // 1 one in the first 101 bits of b
assert_eq!; // 1 one in the first 999 bits of b