Trait selectors::bloom::BloomStorage
source · pub trait BloomStorage: Clone + Default {
// 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 { ... }
}
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
Object Safety§
This trait is not object safe.