[][src]Trait agnes::stats::Sum

pub trait Sum {
    type Output;
    fn sum(&self) -> Self::Output;
}

A trait for computing the sum of values in a field.

Associated Types

type Output

The data type of the sum result.

Loading content...

Required methods

fn sum(&self) -> Self::Output

Returns the sum of values in this field. Treats missing values as 0.

Loading content...

Implementors

impl<DI> Sum for DI where
    DI: DataIndex,
    DI::DType: for<'a> Add<&'a DI::DType, Output = DI::DType> + Zero
[src]

type Output = <DI as DataIndex>::DType

Loading content...