pub trait Bitmap {
// Required methods
fn set(&mut self, key: usize, value: bool);
fn get(&self, key: usize) -> bool;
fn byte_size(&self) -> usize;
}
Expand description
A trait to abstract bit storage for use in a Bloom2
filter.
pub trait Bitmap {
// Required methods
fn set(&mut self, key: usize, value: bool);
fn get(&self, key: usize) -> bool;
fn byte_size(&self) -> usize;
}
A trait to abstract bit storage for use in a Bloom2
filter.