pub trait Simd {
type Element;
type LanesType;
const LANES: usize;
// Required methods
fn splat(t: Self::Element) -> Self;
fn as_array(&self) -> &[Self::Element];
fn sum(&self) -> Self::Element;
}Expand description
This is mostly copy-paste from packed_simd, where this trait is unfortunately
sealed right now. In the future this might come from std::simd.
Required Associated Constants§
Required Associated Types§
Required Methods§
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.