pub struct BloomFilter { /* private fields */ }
Expand description

A simple implementation of a Bloom filter backed by BitVec

Implementations

Creates a new BloomFilter (or opens an existing one, if the file already exists) of a given size (in bits) and with a given number of hash functions for each insert (n_hashes). If a filename is not passed, the Bloom filter will be created in memory.

Insert an item into the Bloom filter.

Check if an item is in the Bloom filter already.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.