pub trait BloomFilter {
type Set: BloomSet;
type Hasher: BuildHasher;
// Required methods
fn counters(&self) -> &Self::Set;
fn insert<T: Hash>(&mut self, val: &T);
fn contains<T: Hash>(&self, val: &T) -> bool;
fn clear(&mut self);
}
Expand description
Supertrait for all types which act as Bloom filters.
Required Associated Types§
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.