pub struct DistinctCount<T>(pub PhantomData<T>);Expand description
Count of distinct values per key.
- Accumulator:
HashSet<T> - Output:
u64
Requires T: Eq + Hash.
Tuple Fields§
§0: PhantomData<T>Implementations§
Source§impl<T> DistinctCount<T>
impl<T> DistinctCount<T>
Trait Implementations§
Source§impl<T: Clone> Clone for DistinctCount<T>
impl<T: Clone> Clone for DistinctCount<T>
Source§fn clone(&self) -> DistinctCount<T>
fn clone(&self) -> DistinctCount<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> CombineFn<T, HashSet<T>, u64> for DistinctCount<T>
impl<T> CombineFn<T, HashSet<T>, u64> for DistinctCount<T>
Source§impl<T: Debug> Debug for DistinctCount<T>
impl<T: Debug> Debug for DistinctCount<T>
Source§impl<T: Default> Default for DistinctCount<T>
impl<T: Default> Default for DistinctCount<T>
Source§fn default() -> DistinctCount<T>
fn default() -> DistinctCount<T>
Returns the “default value” for a type. Read more
Source§impl<T> LiftableCombiner<T, HashSet<T>, u64> for DistinctCount<T>
impl<T> LiftableCombiner<T, HashSet<T>, u64> for DistinctCount<T>
Source§fn build_from_group(&self, values: &[T]) -> HashSet<T>
fn build_from_group(&self, values: &[T]) -> HashSet<T>
Build an accumulator directly from a slice of all values in a group.
impl<T: Copy> Copy for DistinctCount<T>
Auto Trait Implementations§
impl<T> Freeze for DistinctCount<T>
impl<T> RefUnwindSafe for DistinctCount<T>where
T: RefUnwindSafe,
impl<T> Send for DistinctCount<T>where
T: Send,
impl<T> Sync for DistinctCount<T>where
T: Sync,
impl<T> Unpin for DistinctCount<T>where
T: Unpin,
impl<T> UnsafeUnpin for DistinctCount<T>
impl<T> UnwindSafe for DistinctCount<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more