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.get;
bf.field2.set;
bf.val &= 0xFF;
println!;
Bitutils also provides the bits!
and bit!
macros.
let foo = bits!;
assert_eq!;
let bar = bit!;
assert_eq!;