Trait r3_kernel::utils::BinUInteger
source · pub trait BinUInteger: BinInteger {
// Required method
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
.