fn from(exported: ExportedCuckooFilter) -> Self {
        // Assumes that the `BUCKET_SIZE` and `FINGERPRINT_SIZE` constants do not change.
        Self {
            buckets: exported
                .values
                .chunks(BUCKET_SIZE * FINGERPRINT_SIZE)
                .map(Bucket::from)
                .collect::<Vec<_>>()
                .into_boxed_slice(),
            len: exported.length,
            _hasher: PhantomData,
        }
    }
/// 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.
Converts a simplified representation of a filter used for export to a
fully functioning version.
Converts a simplified representation of a filter used for export to a fully functioning version .
fn from(exported: ExportedCuckooFilter) -> Self {
        // Assumes that the `BUCKET_SIZE` and `FINGERPRINT_SIZE` constants do not change.
        Self {
            buckets: exported
                .values
                .chunks(BUCKET_SIZE * FINGERPRINT_SIZE)
                .map(Bucket::from)
                .collect::<Vec<_>>()
                .into_boxed_slice(),
            len: exported.length,
            _hasher: PhantomData,
        }
    }
fn from ( exported : ExportedCuckooFilter ) -> Self { // Assumes that the `BUCKET_SIZE` and `FINGERPRINT_SIZE` constants do not change. Self { buckets : exported . values . chunks ( BUCKET_SIZE * FINGERPRINT_SIZE ) . map ( Bucket :: from ) . collect :: < Vec < _ > > ( ) . into_boxed_slice ( ) , len : exported . length , _hasher : PhantomData , } }
Converts a simplified representation of a filter used for export to a
fully functioning version.
Converts a simplified representation of a filter used for export to a fully functioning version .
exported
ExportedCuckooFilter
exported
ExportedCuckooFilter
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.
` 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 .