uberbyte 0.6.1

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

/*
In the case that you want to print a UberByte you have multiple formatters available
*/

fn main() {
    let byte = UberByte::from(128);

    println!("Binary:   {:b}", byte);
    println!("LowHex:   {:x}", byte);
    println!("HighHex:  {:X}", byte);
    println!("Octa:     {:o}", byte);
    println!("Default:  {}", byte);
    println!("Debug:    {:?}", byte);
}