uberbyte 0.6.1

Bit manipulation for dummies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use uberbyte::UberByte;

fn main() {
    let my_byte: UberByte = UberByte::from(42);

    println!("{:b}", my_byte);
    for index in 0..7 {
        if my_byte.is_bit_set(index) {
            println!("Bit on position {} is set", index);
        } else {
            println!("Bit on position {} is not set", index);
        }
    }
}