biterator 0.3.0

A crate for iterating over individual bits in a byte stream
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented4 out of 8 items with examples
  • Size
  • Source code size: 11.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.62 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • thomascastleman/biterator
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thomascastleman

biterator

Crates.io Documentation

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

Example

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

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

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