bit-range

A small library for getting ranges of bits from collections of bytes.

Example

```rust extern crate bit_range;

use bit_range::BitRange;

let vec = vec![0b01101101, 0b00110100]; let slice = [0b11011010, 0b00000010, 0b1111_1111];

println!("{:0b}", vec.getbitrange(1..5));

asserteq!(vec.getbitrange(1..9), slice.getbit_range(0..8)); ```