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.