Trait method lrs::num::UnsignedInt::checked_next_power_of_two

Calculates the next power of two greater or equal the current value.

Syntax

fn checked_next_power_of_two(&self) -> Option<Self>

Return value

The next power of two or None on overflow.