Trait 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[src]

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

fn is_zeroed(&self) -> bool[src]

Loading content...

Provided methods

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

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

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

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

fn first_slot_index(hash: u32) -> usize[src]

fn second_slot_index(hash: u32) -> usize[src]

Loading content...

Implementors

impl BloomStorage for BloomStorageBool[src]

impl BloomStorage for BloomStorageU8[src]

Loading content...