ArrayInstanceProduct

Trait ArrayInstanceProduct 

Source
pub trait ArrayInstanceProduct<T>: ArrayInstance{
    type Product: HasAfEnum;

    // Required method
    fn product(&self) -> T::ProductOutType;

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

Defines common reduction operation product.

Required Associated Types§

Required Methods§

Source

fn product(&self) -> T::ProductOutType

Calculate the cumulative product.

Provided Methods§

Source

fn product_dtype() -> NumberType

The NumberType of the product 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§