pub trait SimdPartialOrd: SimdValue {
// Required methods
fn simd_gt(self, other: Self) -> Self::SimdBool;
fn simd_lt(self, other: Self) -> Self::SimdBool;
fn simd_ge(self, other: Self) -> Self::SimdBool;
fn simd_le(self, other: Self) -> Self::SimdBool;
fn simd_eq(self, other: Self) -> Self::SimdBool;
fn simd_ne(self, other: Self) -> Self::SimdBool;
fn simd_max(self, other: Self) -> Self;
fn simd_min(self, other: Self) -> Self;
fn simd_clamp(self, min: Self, max: Self) -> Self;
fn simd_horizontal_min(self) -> Self::Element;
fn simd_horizontal_max(self) -> Self::Element;
}Expand description
Lane-wise generalization of the standard PartialOrd for SIMD values.
Required Methods§
Sourcefn simd_clamp(self, min: Self, max: Self) -> Self
fn simd_clamp(self, min: Self, max: Self) -> Self
Clamps each lane of self between the corresponding lane of min and max.
Sourcefn simd_horizontal_min(self) -> Self::Element
fn simd_horizontal_min(self) -> Self::Element
The min value among all lanes of self.
Sourcefn simd_horizontal_max(self) -> Self::Element
fn simd_horizontal_max(self) -> Self::Element
The max value among all lanes of self.
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.