Expand description
A vector of bits (“Vob”) is a sequence of bits which exposes a Vec-like interface. Whereas
Vec<bool> requires 1 byte of storage per bit, Vob requires only 1 bit of storage per bit.
The main documentation for this crate can be found in the Vob struct.
Macros§
- vob
- Create a
Vobfrom a list of boolean values.
Structs§
- Iter
- Iter
SetBits - Iter
Unset Bits - Storage
Iter - Vob
- A Vob is a “vector of bits”: a sequence of bits which exposes a
Vec-like interface. WhereasVec<bool>requires 1 byte of storage per bit,Vobrequires only 1 bit of storage per bit. For larger numbers of bits, Vobs can lead to a significant memory decrease and performance increase.