Trait EstimateIterCardinality

Source
pub trait EstimateIterCardinality {
    // Required method
    fn estimate_cardinality<P: 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<P: 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.

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.

Implementors§

Source§

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