subms-cuckoo-filter-0.4.0 has been yanked.
Cuckoo filter - Rust
Bloom-alternative that supports delete. Partial-key cuckoo hashing places each fingerprint in one of two candidate buckets; under load, kick a fingerprint out and re-place it.
Part of the submillisecond.com cookbook. Zero external dependencies; std only.
Install
[]
= "0.4"
Quickstart
Public API
pub struct CuckooFilterpub fn with_capacity(expected_entries: usize) -> Selfpub fn len(&self) -> usizepub fn is_empty(&self) -> boolpub fn bucket_count(&self) -> usizepub fn insert(&mut self, key: &str) -> boolpub fn contains(&self, key: &str) -> boolpub fn delete(&mut self, key: &str) -> bool
Files
src/lib.rs- implementation.tests/- integration tests; correctness, edge cases, property/stress.examples/demo.rs- stdout walkthrough.examples/perf_main.rs- bench entry (behind theharnessfeature).
License
Dual-licensed under MIT OR Apache-2.0.