Struct cuckoofilter::ExportedCuckooFilter
source · Expand description
A minimal representation of the CuckooFilter which can be transfered or stored, then recovered at a later stage.
Fields§
§values: Vec<u8>
§length: usize
Trait Implementations§
source§impl Debug for ExportedCuckooFilter
impl Debug for ExportedCuckooFilter
source§impl<H> From<&CuckooFilter<H>> for ExportedCuckooFilterwhere
H: Hasher + Default,
impl<H> From<&CuckooFilter<H>> for ExportedCuckooFilterwhere
H: Hasher + Default,
source§fn from(cuckoo: &CuckooFilter<H>) -> Self
fn from(cuckoo: &CuckooFilter<H>) -> Self
Converts a CuckooFilter
into a simplified version which can be serialized and stored
for later use.
source§impl<H> From<ExportedCuckooFilter> for CuckooFilter<H>
impl<H> From<ExportedCuckooFilter> for CuckooFilter<H>
source§fn from(exported: ExportedCuckooFilter) -> Self
fn from(exported: ExportedCuckooFilter) -> Self
Converts a simplified representation of a filter used for export to a fully functioning version.
Contents
values
- A serialized version of theCuckooFilter
’s memory, where the fingerprints in each bucket are chained one after another, then in turn all buckets are chained together.length
- The number of valid fingerprints inside theCuckooFilter
. This value is used as a time saving method, otherwise all fingerprints would need to be checked for equivalence against the null pattern.