SumKernel

Trait SumKernel 

Source
pub trait SumKernel: VTable {
    // Required method
    fn sum(
        &self,
        array: &Self::Array,
        accumulator: &Scalar,
    ) -> VortexResult<Scalar>;
}

Required Methods§

Source

fn sum(&self, array: &Self::Array, accumulator: &Scalar) -> VortexResult<Scalar>

§Preconditions
  • The array’s DType is summable
  • The array is not all-null
  • The accumulator must have a dtype compatible with the sum result dtype

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§