pub trait SimdOps:
Copy
+ PartialOrd
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self> { }Expand description
Trait for types that can be processed with SIMD operations
This trait provides the basic constraints required for types to participate
in SIMD-accelerated numerical computations. Currently implemented for f32 and f64.
§Examples
ⓘ
use scirs2_core::simd::traits::SimdOps;
fn process_simd<T: SimdOps>(data: &[T]) {
// SIMD operations can be safely performed on T
}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.