Function intspector::min_bits[][src]

pub fn min_bits(value: i64) -> u32
Expand description

Returns the minimum number of bits required to represent the integer. For positive input, gives the number of unsigned bits. For negative input, gives the number of two’s complement bits.