pub trait BinUInteger: BinInteger {
    // Required method
    fn is_power_of_two(&self) -> bool;
}
Expand description

Unsigned integral types with efficient binary operations.

Required Methods§

source

fn is_power_of_two(&self) -> bool

Return ture if and only if self == 2^k for some k.

Implementations on Foreign Types§

source§

impl BinUInteger for u16

source§

impl BinUInteger for u32

source§

impl BinUInteger for u64

source§

impl BinUInteger for usize

source§

impl BinUInteger for u8

source§

impl BinUInteger for u128

Implementors§