Skip to main content

ReduceOp

Trait ReduceOp 

Source
pub trait ReduceOp {
    // Required methods
    fn identity() -> f32;
    fn combine(a: f32, b: f32) -> f32;
}
Expand description

Reduction operation trait for generic tile reduction

Required Methods§

Source

fn identity() -> f32

Identity element for the reduction (0 for sum, -inf for max, inf for min)

Source

fn combine(a: f32, b: f32) -> f32

Combine two values

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§