Skip to main content

ScanOp

Trait ScanOp 

Source
pub trait ScanOp<T>:
    Sealed
    + Copy
    + 'static
where T: NumericElement,
{ // 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> ScanOp<T> for ScanAdd
where T: NumericElement,

Source§

impl<T> ScanOp<T> for ScanMax
where T: NumericElement,

Source§

impl<T> ScanOp<T> for ScanMin
where T: NumericElement,

Source§

impl<T> ScanOp<T> for ScanMul
where T: NumericElement,