1use uberbyte::UberByte;
2
3fn main() {
4 let my_byte: UberByte = UberByte::from(42);
5
6 println!("{:b}", my_byte);
7 for index in 0..7 {
8 if my_byte.is_bit_set(index) {
9 println!("Bit on position {} is set", index);
10 } else {
11 println!("Bit on position {} is not set", index);
12 }
13 }
14}