Function mycelium_util::math::usize_const_log2
source · pub const fn usize_const_log2(n: usize) -> usize
Expand description
Returns log2(n)
.
This is exposed in addition to the Logarithm
extension trait because it
is a
const fn
, while trait methods cannot be const fn
s.