A Bloom Filter implementation in Rust.
toml
[dependencies]
bloom-filter-rs = "0.1"
```rust,norun extern crate bloomfilterrs as bloomfilter;
use std::vec::Vec; use bloom_filter::{BloomFilter, Murmur3};
let words = vec!["Hello", "I", "am", "some", "words"];
let mut bloom_filter = BloomFilter::optimal(Murmur3, words.len() as u64, 0.01);
bloomfilter.insertall(&words);
for word in words.iter() { assert!(bloom_filter.contains(&word)); } ```