pub struct Seabloom { /* private fields */ }
Implementations§
Source§impl Seabloom
impl Seabloom
pub fn new(bitcount: u64, seeds: Vec<u64>) -> Seabloom
pub fn create_random_seeds(bitcount: u64, hashcount: u32) -> Seabloom
pub fn create_optimal(item_count: u32, error_rate: f32) -> Seabloom
pub fn create(item_count: u32) -> Seabloom
pub fn clear(&mut self)
pub fn add_bytes(&mut self, bytes: &[u8])
pub fn add(&mut self, item: &str)
pub fn add_list(&mut self, items: Vec<&str>)
pub fn has_bytes(&self, bytes: &[u8]) -> bool
pub fn has(&self, item: &str) -> bool
Auto Trait Implementations§
impl Freeze for Seabloom
impl RefUnwindSafe for Seabloom
impl Send for Seabloom
impl Sync for Seabloom
impl Unpin for Seabloom
impl UnwindSafe for Seabloom
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more