pub trait EstimateIterCardinality {
    // Required method
    fn estimate_cardinality<PRECISION: Precision + WordType<BITS>, const BITS: usize>(
        self
    ) -> f32;
}
Expand description

A trait for estimating the cardinality of an iterator.

Required Methods§

source

fn estimate_cardinality<PRECISION: Precision + WordType<BITS>, const BITS: usize>( self ) -> f32

Estimate the cardinality of the iterator.

Arguments
  • self - An iterator over elements to estimate the cardinality of.
Type parameters
  • PRECISION - The precision to use for the HyperLogLog counter.
  • BITS - The number of bits per register in the HyperLogLog counter.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I, T: Hash> EstimateIterCardinality for I
where I: Iterator<Item = T>,