[][src]Struct count_min_sketch::CountMinSketch64

pub struct CountMinSketch64<K> { /* fields omitted */ }

Methods

impl<K> CountMinSketch64<K> where
    K: Hash
[src]

pub fn new(
    capacity: usize,
    probability: f64,
    tolerance: f64
) -> Result<Self, &'static str>
[src]

pub fn add<Q: ?Sized>(&mut self, key: &Q, value: u64) where
    Q: Hash,
    K: Borrow<Q>, 
[src]

pub fn increment<Q: ?Sized>(&mut self, key: &Q) where
    Q: Hash,
    K: Borrow<Q>, 
[src]

pub fn estimate<Q: ?Sized>(&self, key: &Q) -> u64 where
    Q: Hash,
    K: Borrow<Q>, 
[src]

pub fn estimate_memory(
    capacity: usize,
    probability: f64,
    tolerance: f64
) -> Result<usize, &'static str>
[src]

pub fn clear(&mut self)[src]

pub fn reset(&mut self)[src]

pub fn reset_next(&mut self) -> Option<usize>[src]

Auto Trait Implementations

impl<K> Send for CountMinSketch64<K> where
    K: Send

impl<K> Sync for CountMinSketch64<K> where
    K: Sync

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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