Trait compacts::bits::PopCount [−][src]
pub trait PopCount<T> { const MAX_BOUND: T; fn count1(&self) -> T; fn count0(&self) -> T
where
T: Sub<Output = T>, { ... } }
PopCount
is a trait for PopCount
or HammingWeight
.
Associated Constants
const MAX_BOUND: T
Required Methods
fn count1(&self) -> T
Provided Methods
Implementations on Foreign Types
impl PopCount<u64> for u64
[src]
impl PopCount<u64> for u64
impl PopCount<u32> for u64
[src]
impl PopCount<u32> for u64
impl PopCount<u16> for u64
[src]
impl PopCount<u16> for u64
impl PopCount<u8> for u64
[src]
impl PopCount<u8> for u64