pub struct BloomFilter { /* private fields */ }Expand description
Bitset filter backed by a scalable Bloom Filter.
This filter operates with the least amount of memory, with a cost
of speed (roughly 60-70% of the speed of the DigestFilter, using
only 25% of the memory).
The backing bloom filter initializes with 1e6 bits by default, with
1e-7 probability of collisions. This is roughly comparable to the
collision rate of the digest filter, so this should be chosen when
memory is critical.
Trait Implementations§
Source§impl Debug for BloomFilter
impl Debug for BloomFilter
Auto Trait Implementations§
impl Freeze for BloomFilter
impl RefUnwindSafe for BloomFilter
impl Send for BloomFilter
impl Sync for BloomFilter
impl Unpin for BloomFilter
impl UnwindSafe for BloomFilter
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