Trait r3_kernel::utils::BinUInteger
source · [−]pub trait BinUInteger: BinInteger {
fn is_power_of_two(&self) -> bool;
}
Expand description
Unsigned integral types with efficient binary operations.
Required methods
fn 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
.