Skip to main content

bit_width

Function bit_width 

Source
pub fn bit_width(max: u64) -> u8
Expand description

The number of bits needed to represent every value up to max.

ยงPanics

The checked conversion is mathematically bounded to 64 bits.