[−][src]Struct bloomfilter::BloomFilter
Fields
bitset: Vec<bool>
k: usize
n: usize
m: usize
murmur3_seeds: Vec<usize>
Methods
impl BloomFilter
[src]
pub fn new(max_capacity: usize, target_error_rate: f64) -> Self
[src]
pub fn add(&mut self, item: &[u8])
[src]
pub fn get_hashes(&self, item: &[u8]) -> Vec<u128>
[src]
pub fn check_existence(&self, item: &[u8]) -> bool
[src]
pub fn error_rate(&self) -> f64
[src]
pub fn optimal_bitset_size(capacity: usize, false_positive_rate: f64) -> usize
[src]
pub fn hashfunctions_needed(bitset_size: usize, capacity: usize) -> usize
[src]
Auto Trait Implementations
impl Send for BloomFilter
impl Sync for BloomFilter
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> FromPy for T
[src]
impl<T, U> IntoPy for T where
U: FromPy<T>,
[src]
U: FromPy<T>,