Skip to main content

bits_needed

Function bits_needed 

Source
pub fn bits_needed(val: u32) -> u8
Expand description

Compute the number of bits needed to represent a value