pub struct BloomConfig {
pub expected_items: usize,
pub false_positive_rate: f64,
}Expand description
Configuration used to size a BloomFilter.
Fields§
§expected_items: usizeExpected number of stored keys before reserve capacity is applied.
false_positive_rate: f64Desired false-positive probability in the range (0, 1).
Implementations§
Trait Implementations§
Source§impl Clone for BloomConfig
impl Clone for BloomConfig
Source§fn clone(&self) -> BloomConfig
fn clone(&self) -> BloomConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BloomConfig
impl Debug for BloomConfig
Source§impl PartialEq for BloomConfig
impl PartialEq for BloomConfig
Source§fn eq(&self, other: &BloomConfig) -> bool
fn eq(&self, other: &BloomConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BloomConfig
impl StructuralPartialEq for BloomConfig
Auto Trait Implementations§
impl Freeze for BloomConfig
impl RefUnwindSafe for BloomConfig
impl Send for BloomConfig
impl Sync for BloomConfig
impl Unpin for BloomConfig
impl UnsafeUnpin for BloomConfig
impl UnwindSafe for BloomConfig
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