[−][src]Trait simba::simd::SimdValue
Trait implemented by Simd types as well as scalar types (f32, u32, etc.).
Associated Types
type Element: SimdValue<Element = Self::Element, SimdBool = bool>
The type of the elements of each lane of this SIMD value.
type SimdBool: SimdBool
Required methods
fn lanes() -> usize
fn splat(val: Self::Element) -> Self
fn extract(&self, i: usize) -> Self::Element
unsafe fn extract_unchecked(&self, i: usize) -> Self::Element
fn replace(&mut self, i: usize, val: Self::Element)
unsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)
fn select(self, cond: Self::SimdBool, other: Self) -> Self
Provided methods
fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Self where
Self: Clone,
Self: Clone,
fn zip_map_lanes(
self,
b: Self,
f: impl Fn(Self::Element, Self::Element) -> Self::Element
) -> Self where
Self: Clone,
self,
b: Self,
f: impl Fn(Self::Element, Self::Element) -> Self::Element
) -> Self where
Self: Clone,