pub struct GroupSummary<K, S, A> {
pub key: K,
pub count: u64,
pub sum: Option<S>,
pub average: Option<A>,
}Expand description
Count, sum and average of one numeric operand in a completed group.
Fields§
§key: KGrouping record.
count: u64Number of present operands (the average denominator).
sum: Option<S>Exact sum converted to the declared sum result.
average: Option<A>Average rounded once to the declared average result.
Trait Implementations§
Auto Trait Implementations§
impl<K, S, A> Forget for GroupSummary<K, S, A>
impl<K, S, A> Freeze for GroupSummary<K, S, A>
impl<K, S, A> Move for GroupSummary<K, S, A>
impl<K, S, A> RefUnwindSafe for GroupSummary<K, S, A>
impl<K, S, A> Send for GroupSummary<K, S, A>
impl<K, S, A> Sync for GroupSummary<K, S, A>
impl<K, S, A> Unpin for GroupSummary<K, S, A>
impl<K, S, A> UnsafeUnpin for GroupSummary<K, S, A>
impl<K, S, A> UnwindSafe for GroupSummary<K, S, A>
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