[][src]Trait selectors::bloom::BloomStorage

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

Loading content...

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

Loading content...

Implementors

impl BloomStorage for BloomStorageBool[src]

impl BloomStorage for BloomStorageU8[src]

Loading content...