| Crates.io | dakv_cuckoo |
| lib.rs | dakv_cuckoo |
| version | 0.1.1 |
| created_at | 2020-05-17 13:11:42.018982+00 |
| updated_at | 2021-06-09 03:06:13.751139+00 |
| description | Cuckoo filter for dakv |
| homepage | https://github.com/dakv/cuckoo |
| repository | |
| max_upload_size | |
| id | 242653 |
| size | 23,561 |
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"));
}