bitmath_macros
Contains the utility proc macro bitslice!
used with the bitmath
crate.
bitslice!()
Allows for taking subsets of Bits
objects as a new Bits
, with conventional bitwise syntax (e.g. 15:8 instead of 8..16)
let source = try_from.unwrap;
let middle_bits = bitslice!;
println!;
// Bits<8>{ 1101 1011 | dec 219/-37 | hex 0xdb/-0x25 }