biterator

Crates.io Documentation

This crate provides Biterator, an iterator over individual bits in a source of bytes.

Example

```rust use biterator::{Biterator, Bit::*};

let bytes = [0b00001111, 0b10101011]; let b = Biterator::new(&bytes);

assert_eq!( b.collect::>(), vec![ Zero, Zero, Zero, Zero, One, One, One, One, One, Zero, One, Zero, One, Zero, One, One, ] ); ```