bit-iter 0.1.0

A simple crate which allows iteration over the set bits in an integral value.
Documentation
bit-iter-0.1.0 has been yanked.

bit-iter

Iterate over the bits set in a word.

A BitIter may be constructed from any integral value.

Example

fn main() {
    use bit_iter::*;

    let x : u32 = 0x10001;

    for b in BitIter::from(x) {
        println!("Bit {} is set.", b);
    }
}

Output:

Bit 0 is set.
Bit 16 is set.