pub trait SetLike<I> {
    // Required methods
    fn get_estimated_union_cardinality(
        &self,
        self_cardinality: I,
        other: &Self,
        other_cardinality: I
    ) -> EstimatedUnionCardinalities<I>;
    fn get_cardinality(&self) -> I;
}

Required Methods§

source

fn get_estimated_union_cardinality( &self, self_cardinality: I, other: &Self, other_cardinality: I ) -> EstimatedUnionCardinalities<I>

Returns the estimated intersection and left and right difference cardinality between two sets.

source

fn get_cardinality(&self) -> I

Returns the cardinality of the set.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<F: Primitive<f32>, PRECISION: Precision + WordType<BITS>, const BITS: usize> SetLike<F> for HyperLogLog<PRECISION, BITS>