pub fn bit_width(max: u64) -> u8
The number of bits needed to represent every value up to max.
max
The checked conversion is mathematically bounded to 64 bits.