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§
Source§impl Debug for ExportedCuckooFilter
impl Debug for ExportedCuckooFilter
Source§impl<H> From<&CuckooFilter<H>> for ExportedCuckooFilter
impl<H> From<&CuckooFilter<H>> for ExportedCuckooFilter
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.
Auto Trait Implementations§
impl Freeze for ExportedCuckooFilter
impl RefUnwindSafe for ExportedCuckooFilter
impl Send for ExportedCuckooFilter
impl Sync for ExportedCuckooFilter
impl Unpin for ExportedCuckooFilter
impl UnwindSafe for ExportedCuckooFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more