Struct multibloom::BloomFilter [] [src]

pub struct BloomFilter<H: Hasher> { /* fields omitted */ }

Methods

impl BloomFilter<SipHasher>
[src]

Default BloomFilter constructor using SipHasher

size: The size of the bit vector being stored. (m)

hash_count: The number of hash functions to use. (k)

Default BloomFilter constructor for SipHasher using desired error rate and number of items

n: The number of items that are going to be stored in the bloom filter.

p: The allowable error rate of false positives

impl<H> BloomFilter<H> where
    H: Hasher + Clone + Default
[src]

Constructs a bloom filter, generic over hash function

Constructs a new Generic BloomFilter using desired error rate and number of items

n: The number of items that are going to be stored in the bloom filter.

p: The allowable error rate of false positives

Add a Hashable type to the bloom filter.

Query the bloom filter for some Hashable value.

Returns the number of bits set in the bloom filter.

This is an expensive operation, there's no reason to use it unless you're doing something strange

Clears the bloom filter of all values.

Trait Implementations

impl<H> Debug for BloomFilter<H> where
    H: Hasher + Clone + Default
[src]

Formats the value using the given formatter.