pub trait CheckedNextPowerOf2 {
    type Output;

    fn checked_next_power_of_2(self) -> Option<Self::Output>;
}
Expand description

Finds the smallest integer power of 2 greater than or equal to a number, returning None if the result is not representable.

Required Associated Types

Required Methods

Implementations on Foreign Types

This is a wrapper over the checked_next_power_of_two functions in the standard library, for example this one.

This is a wrapper over the checked_next_power_of_two functions in the standard library, for example this one.

This is a wrapper over the checked_next_power_of_two functions in the standard library, for example this one.

This is a wrapper over the checked_next_power_of_two functions in the standard library, for example this one.

This is a wrapper over the checked_next_power_of_two functions in the standard library, for example this one.

This is a wrapper over the checked_next_power_of_two functions in the standard library, for example this one.

Implementors