[−][src]Struct count_min_sketch::CountMinSketch64
Methods
impl<K> CountMinSketch64<K> where
K: Hash,
[src]
K: Hash,
pub fn new(
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<Self, &'static str>
[src]
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<Self, &'static str>
pub fn add<Q: ?Sized>(&mut self, key: &Q, value: u64) where
Q: Hash,
K: Borrow<Q>,
[src]
Q: Hash,
K: Borrow<Q>,
pub fn increment<Q: ?Sized>(&mut self, key: &Q) where
Q: Hash,
K: Borrow<Q>,
[src]
Q: Hash,
K: Borrow<Q>,
pub fn estimate<Q: ?Sized>(&self, key: &Q) -> u64 where
Q: Hash,
K: Borrow<Q>,
[src]
Q: Hash,
K: Borrow<Q>,
pub fn estimate_memory(
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<usize, &'static str>
[src]
capacity: usize,
probability: f64,
tolerance: f64
) -> Result<usize, &'static str>
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,
K: Send,
impl<K> Sync for CountMinSketch64<K> where
K: Sync,
K: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,