Trait method lrs::num::UnsignedInt::next_power_of_two

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

Syntax

fn next_power_of_two(&self) -> Self

Return value

The next power of two or 1 on overflow.