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