Expand description
Say, we have a bit vector —
it’s nothing better than a Vec<bool>, but …
what if we implement it,
and save some poor bits of memory?
§Quick Start
use bitvek::bitvec;
let vec = bitvec![
true, true, true, true, false, false, false, false,
false, false, false, false, true, true, true, true,
];Find it cumbersome? Try this:
// The total number of bits must be a multiple of 8.
let vec = bitvec![0b11110000, 0b00001111];Macros§
Structs§
- BitVec
- A bit vector.
- Into
Iter - An owning iterator over the bits of a
BitVec. - Iter
- An iterator over the bits of a
BitVec.