Trait no_std_compat::simd::cmp::SimdOrd
source · pub trait SimdOrd: SimdPartialOrd {
// Required methods
fn simd_max(self, other: Self) -> Self;
fn simd_min(self, other: Self) -> Self;
fn simd_clamp(self, min: Self, max: Self) -> Self;
}
🔬This is a nightly-only experimental API. (
portable_simd
)Expand description
Parallel Ord
.
Required Methods§
sourcefn simd_max(self, other: Self) -> Self
🔬This is a nightly-only experimental API. (portable_simd
)
fn simd_max(self, other: Self) -> Self
portable_simd
)Returns the element-wise maximum with other
.
sourcefn simd_min(self, other: Self) -> Self
🔬This is a nightly-only experimental API. (portable_simd
)
fn simd_min(self, other: Self) -> Self
portable_simd
)Returns the element-wise minimum with other
.
sourcefn simd_clamp(self, min: Self, max: Self) -> Self
🔬This is a nightly-only experimental API. (portable_simd
)
fn simd_clamp(self, min: Self, max: Self) -> Self
portable_simd
)Restrict each element to a certain interval.
For each element, returns max
if self
is greater than max
, and min
if self
is
less than min
. Otherwise returns self
.
§Panics
Panics if min > max
on any element.
Object Safety§
This trait is not object safe.