Skip to main content

ScanOp

Trait ScanOp 

Source
pub trait ScanOp<T: Scalar>:
    Sealed
    + Copy
    + 'static {
    // Required methods
    fn identity() -> T;
    fn combine(a: T, b: T) -> T;
}
Expand description

Sealed ZST trait for prefix scan operations.

Required Methods§

Source

fn identity() -> T

Returns the identity element of the operation.

Source

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

Combine two values using the operation: a op b.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Scalar> ScanOp<T> for ScanAdd

Source§

impl<T: Scalar> ScanOp<T> for ScanMax

Source§

impl<T: Scalar> ScanOp<T> for ScanMin

Source§

impl<T: Scalar> ScanOp<T> for ScanMul