Trait SetLike

Source
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.

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<F: Primitive<f32>, P: Precision + WordType<BITS>, const BITS: usize> SetLike<F> for HyperLogLog<P, BITS>