# Bloom Filter [![Build Status](https://travis-ci.org/jeromefroe/jmphash-rs.svg?branch=master)](https://travis-ci.org/jeromefroe/bloom_filter) [![Coverage Status](https://coveralls.io/repos/github/jeromefroe/jmphash-rs/badge.svg?branch=master)](https://coveralls.io/github/jeromefroe/bloom_filter?branch=master) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jeromefroe/bloom_filter/master/LICENSE) An implementation of a bloom filter as as described in [Space/Time Trade-offs in Hash Coding with Allowable Errors] (http://dmod.eu/deca/ft_gateway.cfm.pdf). ## Example ``` rust,no_run extern crate bloom_filter; use bloom_filter::BloomBuilder; fn main() { let elements = 2u64.pow(20); let fpr = 0.01; let mut bloom = BloomBuilder::new(elements).with_fpr(fpr).finish().unwrap(); bloom.insert("foo"); bloom.insert("bar"); bloom.insert("baz"); if bloom.lookup("foo") { println!("found foo in the bloom filter"); } } ```