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§

source

fn slot_is_empty(&self, index: usize) -> bool

source

fn adjust_slot(&mut self, index: usize, increment: bool)

source

fn is_zeroed(&self) -> bool

Provided Methods§

source

fn first_slot_is_empty(&self, hash: u32) -> bool

source

fn second_slot_is_empty(&self, hash: u32) -> bool

source

fn adjust_first_slot(&mut self, hash: u32, increment: bool)

source

fn adjust_second_slot(&mut self, hash: u32, increment: bool)

source

fn first_slot_index(hash: u32) -> usize

source

fn second_slot_index(hash: u32) -> usize

Object Safety§

This trait is not object safe.

Implementors§