Skip to main content

GroupSummary

Struct GroupSummary 

Source
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: K

Grouping record.

§count: u64

Number 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§

Source§

impl<K: Debug, S: Debug, A: Debug> Debug for GroupSummary<K, S, A>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<K, S, A> Forget for GroupSummary<K, S, A>

§

impl<K, S, A> Freeze for GroupSummary<K, S, A>
where K: Freeze, Option<S>: Freeze, Option<A>: Freeze,

§

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>
where K: Send, Option<S>: Send, Option<A>: Send,

§

impl<K, S, A> Sync for GroupSummary<K, S, A>
where K: Sync, Option<S>: Sync, Option<A>: Sync,

§

impl<K, S, A> Unpin for GroupSummary<K, S, A>
where K: Unpin, Option<S>: Unpin, Option<A>: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.