pub trait HyperLogLog<H: Hash + ?Sized> {
// Required methods
fn add(&mut self, value: &H);
fn insert<Q>(&mut self, value: &Q)
where H: Borrow<Q>,
Q: Hash + ?Sized;
fn count(&mut self) -> f64;
}
Expand description
A trait that should be implemented by any HyperLogLog variant.
Required Methods§
Sourcefn add(&mut self, value: &H)
👎Deprecated since 0.3.0: use insert() function instead.
fn add(&mut self, value: &H)
Adds a new value to the multiset.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.