bloom_bitset/counting/struct.rs
1/// A 4-bit saturating Counting Bloom filter supporting insertion, membership queries, and deletion.
2#[derive(Clone, Debug, Eq, PartialEq)]
3pub struct CountingBloomFilter {
4 /// Packed 4-bit counters (two counters per byte).
5 pub(crate) nibbles: Vec<u8>,
6 /// Total number of 4-bit counter slots.
7 pub(crate) slot_count: usize,
8 /// Number of hash probes per element (`1..=16`).
9 pub(crate) hash_count: u32,
10}