pub struct HyperLogLog { /* private fields */ }Expand description
HyperLogLog probabilistic distinct-element cardinality estimator using 64-bit hashes.
Implementations§
Source§impl HyperLogLog
Core cardinality estimation and merge operations for HyperLogLog.
impl HyperLogLog
Core cardinality estimation and merge operations for HyperLogLog.
Sourcepub fn new(precision: u8) -> Self
pub fn new(precision: u8) -> Self
Creates a new HyperLogLog with precision p clamped to 4..=16.
§Arguments
u8- Precision parameterp(m = 2^pregisters).
§Returns
Self- Empty HyperLogLog estimator.
Sourcepub fn register_len(&self) -> usize
pub fn register_len(&self) -> usize
Trait Implementations§
Source§impl Clone for HyperLogLog
impl Clone for HyperLogLog
Source§impl Debug for HyperLogLog
impl Debug for HyperLogLog
Source§impl Default for HyperLogLog
Default construction for HyperLogLog.
impl Default for HyperLogLog
Default construction for HyperLogLog.
Source§fn default() -> Self
fn default() -> Self
Creates a HyperLogLog with HLL_DEFAULT_PRECISION (p = 14).
§Returns
Self- Empty HyperLogLog estimator.
impl Eq for HyperLogLog
Source§impl PartialEq for HyperLogLog
impl PartialEq for HyperLogLog
impl StructuralPartialEq for HyperLogLog
Auto Trait Implementations§
impl Forget for HyperLogLog
impl Freeze for HyperLogLog
impl Move for HyperLogLog
impl RefUnwindSafe for HyperLogLog
impl Send for HyperLogLogwhere
RawVecInner: Send,
impl Sync for HyperLogLogwhere
RawVecInner: Sync,
impl Unpin for HyperLogLog
impl UnsafeUnpin for HyperLogLog
impl UnwindSafe for HyperLogLogwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more