Skip to main content

Module prelude

Module prelude 

Source
Expand description

Convenient re-exports for typical usage.

Glob-importing the prelude brings the structures, the hashing types, and the error type into scope:

use bloom_lib::prelude::*;

let mut filter = BloomFilter::new(1_000, 0.01).unwrap();
filter.insert("hello");
assert!(filter.contains("hello"));

Re-exportsยง

pub use crate::hash::DefaultHashBuilder;
pub use crate::hash::DefaultHasher;
pub use crate::Error;
pub use crate::BloomFilter;alloc
pub use crate::CountMinSketch;alloc
pub use crate::CuckooFilter;alloc
pub use crate::HyperLogLog;alloc
pub use crate::MinHash;alloc
pub use crate::TopK;alloc