pub trait CheckedNextPowerOf2 {
type Output;
// Required method
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.
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.