bitvek
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 bitvec;
let vec = bitvec!;
Find it cumbersome? Try this:
// requires the total number of bits to be a multiple of 8
let vec = bitvec!;
Memory Efficiency
To achieve memory savings, the total number of bits stored must exceed twice the machine word the size in bytes, corresponding to 8 for 32-bit systems and 16 for 64-bit systems.