pub trait SimdOrd<T> {
const MIN: T;
const MAX: T;
fn max_element(self) -> T;
fn min_element(self) -> T;
fn max_lane(self, x: Self) -> Self;
fn min_lane(self, x: Self) -> Self;
fn new_min() -> Self;
fn new_max() -> Self;
}
Expand description
Trait describing a type describing multiple lanes with an order relationship
consistent with the same order of T
.
Required Associated Constants
Required Methods
fn max_element(self) -> T
fn max_element(self) -> T
reduce itself to the minimum
fn min_element(self) -> T
fn min_element(self) -> T
reduce itself to the maximum
fn max_lane(self, x: Self) -> Self
fn max_lane(self, x: Self) -> Self
lane-wise maximum between two instances
fn min_lane(self, x: Self) -> Self
fn min_lane(self, x: Self) -> Self
lane-wise minimum between two instances
fn new_min() -> Self
fn new_min() -> Self
returns a new instance with all lanes equal to MIN
fn new_max() -> Self
fn new_max() -> Self
returns a new instance with all lanes equal to MAX