Functionsยง
- checked_
int_ div - Division implementation that fails in case when
a`` isn't divisible byb` - checked_
log_ 2 - log2 implementation that fails when
valis not a power of 2. - log2_
ceil_ usize - Computes the binary logarithm of $n$ rounded up to the nearest integer.
- log2_
strict_ usize - Computes
log_2(n) - min_
bits - Returns the number of bits needed to represent $n$.
- strict_
log_ 2 - Computes binary logarithm of
val. Ifvalis not a power of 2, returnsNone.