Trait ArrayInstanceSum

Source
pub trait ArrayInstanceSum<T>: ArrayInstance{
    type Sum: HasAfEnum;

    // Required method
    fn sum(&self) -> T::AggregateOutType;

    // Provided method
    fn sum_dtype() -> NumberType { ... }
}
Expand description

Defines common reduction operation sum.

Required Associated Types§

Required Methods§

Source

fn sum(&self) -> T::AggregateOutType

Calculate the cumulative sum.

Provided Methods§

Source

fn sum_dtype() -> NumberType

The NumberType of the sum of this array.

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§