bitutils
Providing bitfields and related functionality
API
At the core of bitutils lies one macro, bf!.
Syntax:
bf!;
Usage:
let mut bf = new;
bf.field1;
bf.set_field2;
bf.val &= 0xFF;
println!;
Bitutils also provides the bits! and bit! macros.
let foo = bits!;
assert_eq!;
let bar = bit!;
assert_eq!;