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
sourceimpl Debug for ExportedCuckooFilter
impl Debug for ExportedCuckooFilter
sourceimpl<H> From<&'_ CuckooFilter<H>> for ExportedCuckooFilter where
H: Hasher + Default,
impl<H> From<&'_ CuckooFilter<H>> for ExportedCuckooFilter where
H: Hasher + Default,
sourcefn 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.
sourceimpl<H> From<ExportedCuckooFilter> for CuckooFilter<H>
impl<H> From<ExportedCuckooFilter> for CuckooFilter<H>
sourcefn 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.
Auto Trait Implementations
impl RefUnwindSafe for ExportedCuckooFilter
impl Send for ExportedCuckooFilter
impl Sync for ExportedCuckooFilter
impl Unpin for ExportedCuckooFilter
impl UnwindSafe for ExportedCuckooFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more