Trait xalloc::int::BinaryUInteger
source · pub trait BinaryUInteger: BinaryInteger {
fn is_power_of_two(&self) -> bool;
}
Expand description
Unsigned integral types with efficient binary operations.
Required Methods
sourcefn is_power_of_two(&self) -> bool
fn is_power_of_two(&self) -> bool
Return ture
if and only if self == 2^k
for some k
.