pub const fn min_bits(n: usize) -> usize
Returns the number of bits needed to represent $n$.
When $n$ is 0, this function returns 0. Otherwise, it returns $\lfloor \log_2 n \rfloor + 1$.