Expand description
This is a bit vector implementation with guaranteed [u8] LSB 0
representation and the ability to get safe immutable and mutable views into its
internal vector for easy I/O.
It mirrors the API of std::vec::Vec as much as possible. Notable differences:
BitVec’s non-consuming iterator enumeratesbools instead of&bools.
Structs§
- BitVec
- Bit vector with guaranteed
[u8]LSB 0 representation and safe mutable access to this slice. Slices into the bit vector are guaranteed to have the unused bits on the last byte set to 0. - Into
Iter - Consumes and allows forward iteration through the bits of a bit vector.
- Iter
- Allows forward iteration through the bits of a bit vector.