pub fn unsigned(bits: &Bits) -> usizeExpand description
Converts up to the first 64 bits of a bit string to an unsigned integer.
ยงExample
let bits = Bits::new([0x10, 0x32, 0x54, 0x76]);
let unsigned = bits_as::unsigned(&bits);
assert_eq!(unsigned, 0x0000000076543210);
let bits = Bits::from([0x10, 0x32, 0x54, 0x76]);
let unsigned = bits_as::unsigned(&bits);
assert_eq!(unsigned, 0x0000000076543210);