pub trait BitCount {
// Required method
fn count(&self) -> usize;
}
Expand description
A trait for succinct data structures that expose the numer of ones of the underlying bit vector.
Required Methods§
Implementations on Foreign Types§
Implementors§
impl<B> BitCount for CountBitVec<B>
impl<B: AsRef<[usize]>> BitCount for BitVec<B>
impl<B: SelectHinted + BitCount, I: AsRef<[u64]>, const LOG2_ONES_PER_INVENTORY: usize, const LOG2_U64_PER_SUBINVENTORY: usize> BitCount for SelectFixed2<B, I, LOG2_ONES_PER_INVENTORY, LOG2_U64_PER_SUBINVENTORY>
Forward BitCount
to the underlying implementation.
impl<B: SelectHinted + BitCount, O: BitFieldSlice<usize>, const LOG2_ONES_PER_INVENTORY: usize> BitCount for SelectFixed1<B, O, LOG2_ONES_PER_INVENTORY>
Forward BitCount
to the underlying implementation.
impl<B: SelectZeroHinted + BitCount, I: AsRef<[u64]>, const LOG2_ZEROS_PER_INVENTORY: usize, const LOG2_U64_PER_SUBINVENTORY: usize> BitCount for SelectZeroFixed2<B, I, LOG2_ZEROS_PER_INVENTORY, LOG2_U64_PER_SUBINVENTORY>
Forward BitCount
to the underlying implementation.
impl<B: SelectZeroHinted + BitCount, O: BitFieldSlice<usize>, const LOG2_ZEROS_PER_INVENTORY: usize> BitCount for SelectZeroFixed1<B, O, LOG2_ZEROS_PER_INVENTORY>
Forward BitCount
to the underlying implementation.