Skip to main content

SimdOperation

Trait SimdOperation 

Source
pub trait SimdOperation<T, const WIDTH: usize> {
    type Output;

    // Required method
    fn apply(&self, input: &SafeSimdVector<T, WIDTH>) -> Self::Output;
}
Expand description

Type-safe SIMD operations with lane validation

Required Associated Types§

Required Methods§

Source

fn apply(&self, input: &SafeSimdVector<T, WIDTH>) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F, T, const WIDTH: usize> SimdOperation<T, WIDTH> for ElementWiseOp<F, T, WIDTH>
where F: Fn(T) -> T, T: Copy + Default,