Trait hi_sparse_bitset::BitBlock
source · pub trait BitBlock: BitAnd<Output = Self> + BitOr<Output = Self> + BitXor<Output = Self> + Sized + Copy + Clone {
type BitsIter: BitQueue;
const SIZE_POT_EXPONENT: usize;
// Required methods
fn zero() -> Self;
fn is_zero(&self) -> bool;
fn set_bit<const BIT: bool>(&mut self, bit_index: usize) -> bool;
fn get_bit(&self, bit_index: usize) -> bool;
fn traverse_bits<F>(&self, f: F) -> ControlFlow<()>
where F: FnMut(usize) -> ControlFlow<()>;
fn bits_iter(self) -> Self::BitsIter;
fn count_ones(&self) -> usize;
}Required Associated Types§
Required Associated Constants§
const SIZE_POT_EXPONENT: usize
Required Methods§
fn zero() -> Self
fn is_zero(&self) -> bool
fn get_bit(&self, bit_index: usize) -> bool
fn traverse_bits<F>(&self, f: F) -> ControlFlow<()>
fn bits_iter(self) -> Self::BitsIter
fn count_ones(&self) -> usize
Object Safety§
This trait is not object safe.