Trait css::selectors::bloom::BloomStorage
[−]
[src]
pub trait BloomStorage: Clone + Default { fn slot_is_empty(&self, index: usize) -> bool; fn adjust_slot(&mut self, index: usize, increment: bool); fn is_zeroed(&self) -> bool; fn first_slot_is_empty(&self, hash: u32) -> bool { ... } fn second_slot_is_empty(&self, hash: u32) -> bool { ... } fn adjust_first_slot(&mut self, hash: u32, increment: bool) { ... } fn adjust_second_slot(&mut self, hash: u32, increment: bool) { ... } fn first_slot_index(hash: u32) -> usize { ... } fn second_slot_index(hash: u32) -> usize { ... } }
Required Methods
fn slot_is_empty(&self, index: usize) -> bool
fn adjust_slot(&mut self, index: usize, increment: bool)
fn is_zeroed(&self) -> bool
Provided Methods
fn first_slot_is_empty(&self, hash: u32) -> bool
fn second_slot_is_empty(&self, hash: u32) -> bool
fn adjust_first_slot(&mut self, hash: u32, increment: bool)
fn adjust_second_slot(&mut self, hash: u32, increment: bool)
fn first_slot_index(hash: u32) -> usize
fn second_slot_index(hash: u32) -> usize
Implementors
impl BloomStorage for BloomStorageU8
impl BloomStorage for BloomStorageBool