This crate provides the BoolVec
structure. This is basically a wrapper around a Vec<u8>
where each byte is interpreted as 8 bool
.
Quick Note: Do what you want with this code, I don't really care :)
Dependencie
[]
= "0.1"
Example
// Create a new `BoolVec`
use BoolVec;
let mut vec = new;
// You can push data onto it
vec.push;
vec.push;
// ... retreve it
assert_eq!;
assert_eq!;
// ... update it
vec.set;
assert_eq!;
// You can get a reference to an unaligned
let mut boolean = vec.get_mut.unwrap;
assert_eq!;
boolean.set;
assert_eq!;
// You can also iterate over this data (mu
let mut iter = vec.iter_mut;
iter.next.unwrap.set;
iter.next.unwrap.set;
let mut iter = vec.iter;
assert_eq!;
assert_eq!;
assert_eq!;