pub trait BloomSet {
// Required methods
fn new(count: usize) -> Self;
fn size(&self) -> usize;
fn increment(&mut self, index: usize);
fn clear(&mut self);
fn query(&self, index: usize) -> bool;
}
Expand description
A trait for types which can serve as the underlying storage for a
BloomFilter
.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.