2 releases
0.1.1 | Jun 9, 2021 |
---|---|
0.1.0 | May 17, 2020 |
#4 in #cuckoo
19KB
599 lines
Cuckoo filter
use dakv_cuckoo::CuckooFilter;
fn main() {
let mut cf = CuckooFilter::default();
let _ = cf.add(b"test");
assert_eq!(cf.size(), 1);
assert!(cf.contains(b"test"));
assert!(cf.delete(b"test"));
assert_eq!(cf.size(), 0);
assert!(!cf.contains(b"test"));
}
Dependencies
~1.4–2MB
~37K SLoC