[][src]Trait hyperloglogplus::HyperLogLog

pub trait HyperLogLog<H: Hash + ?Sized> {
    fn add(&mut self, value: &H);
fn count(&mut self) -> f64; }

A trait that should be implemented by any HyperLogLog variant.

Required methods

fn add(&mut self, value: &H)

Adds a new value to the multiset.

fn count(&mut self) -> f64

Estimates the cardinality of the multiset.

Loading content...

Implementors

impl<H: ?Sized, B> HyperLogLog<H> for HyperLogLogPF<H, B> where
    H: Hash,
    B: BuildHasher
[src]

fn add(&mut self, value: &H)[src]

Adds a new value to the multiset.

fn count(&mut self) -> f64[src]

Estimates the cardinality of the multiset.

impl<H: ?Sized, B> HyperLogLog<H> for HyperLogLogPlus<H, B> where
    H: Hash,
    B: BuildHasher
[src]

fn add(&mut self, value: &H)[src]

Adds a new value to the multiset.

fn count(&mut self) -> f64[src]

Estimates the cardinality of the multiset.

Loading content...