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