Crates.io | plum |
lib.rs | plum |
version | 0.1.5 |
source | src |
created_at | 2020-08-09 13:38:47.93036 |
updated_at | 2020-08-26 09:52:34.084257 |
description | Probabilistic data structures for rust |
homepage | https://github.com/distrentic/plum |
repository | https://github.com/distrentic/plum |
max_upload_size | |
id | 274629 |
size | 8,105 |
plum is a library of various probabilistic data structures for rust :crab:.
Currently, it only contains a fast standard bloom filter implementation.
use plum::StandardBloomFilter;
let items_count = 1_000_000;
let fp_rate = 0.01;
let mut bloom = StandarBloomFilter::new(items_count, fp_rate);
bloom.insert("item1");
bloom.contains("item1"); /* true */
bloom.contains("item2"); /* false */
See docs.rs/plum
Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)