pub struct ExportedCuckooFilter {
    pub values: Vec<u8>,
    pub length: usize,
}
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

Formats the value using the given formatter. Read more

Converts a CuckooFilter into a simplified version which can be serialized and stored for later use.

Converts a simplified representation of a filter used for export to a fully functioning version.

Contents
  • values - A serialized version of the CuckooFilter’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 the CuckooFilter. This value is used as a time saving method, otherwise all fingerprints would need to be checked for equivalence against the null pattern.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.