pub struct CuckooFilterBuilder<H = DefaultHasher>{ /* private fields */ }Expand description
Builder for CuckooFilter.
Implementations§
Source§impl<H> CuckooFilterBuilder<H>
impl<H> CuckooFilterBuilder<H>
Sourcepub fn fingerprint_size(self, value: usize) -> Self
pub fn fingerprint_size(self, value: usize) -> Self
Size of fingerprints in bits (must be 4, 8, 16, or 32)
Sourcepub fn bucket_size(self, value: usize) -> Self
pub fn bucket_size(self, value: usize) -> Self
Number of fingerprints per bucket
Sourcepub fn max_evictions(self, value: usize) -> Self
pub fn max_evictions(self, value: usize) -> Self
Maximum number of evictions to try before giving up
Source§impl<H: Hasher + Default> CuckooFilterBuilder<H>
impl<H: Hasher + Default> CuckooFilterBuilder<H>
Sourcepub fn build(self) -> Result<CuckooFilter<H>, CuckooFilterBuilderError>
pub fn build(self) -> Result<CuckooFilter<H>, CuckooFilterBuilderError>
Build a CuckooFilter with the specified configuration
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for CuckooFilterBuilder<H>
impl<H> RefUnwindSafe for CuckooFilterBuilder<H>where
H: RefUnwindSafe,
impl<H> Send for CuckooFilterBuilder<H>where
H: Send,
impl<H> Sync for CuckooFilterBuilder<H>where
H: Sync,
impl<H> Unpin for CuckooFilterBuilder<H>where
H: Unpin,
impl<H> UnwindSafe for CuckooFilterBuilder<H>where
H: UnwindSafe,
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