Function strict_log_2

Source
pub const fn strict_log_2(val: usize) -> Option<usize>
Expand description

Computes binary logarithm of val. If val is not a power of 2, returns None.