[][src]Struct rust_bloomfilter::BloomFilter

pub struct BloomFilter { /* fields omitted */ }

I have intentionally made the BloomFilter type opaque. It accepts any kind of input as long as it can be converted to bytes.

Implementations

impl BloomFilter[src]

pub fn new(capacity: usize, error_rate: f64, dup_check: bool) -> BloomFilter[src]

pub fn new_with_default_error_rate(
    capacity: usize,
    dup_check: bool
) -> BloomFilter
[src]

pub fn bitvec_len(&self) -> usize[src]

pub fn capacity(&self) -> usize[src]

pub fn len(&self) -> usize[src]

pub fn error_rate(&self) -> f64[src]

pub fn is_empty(&self) -> bool[src]

pub fn add(&mut self, data: &[u8]) -> Result<bool, &'static str>[src]

pub fn contains(&self, data: &[u8]) -> bool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.