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§
Sourcefn sum(&self) -> T::AggregateOutType
fn sum(&self) -> T::AggregateOutType
Calculate the cumulative sum.
Provided Methods§
Sourcefn sum_dtype() -> NumberType
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.