pub trait VectorMask<T: Scalar, const N: usize> {
type Mask;
// Required methods
fn eq(&self, other: &Self) -> Self::Mask;
fn ne(&self, other: &Self) -> Self::Mask;
fn gt(&self, other: &Self) -> Self::Mask;
fn ge(&self, other: &Self) -> Self::Mask;
fn lt(&self, other: &Self) -> Self::Mask;
fn le(&self, other: &Self) -> Self::Mask;
fn select(&self, other: &Self, mask: Self::Mask) -> Self;
fn all(mask: &Self::Mask) -> bool;
}Expand description
Vector comparison and masking operations.
Produces a bitmask (or SIMD mask) from lane-wise comparisons, and allows selecting between two vectors based on a mask.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl VectorMask<f32, 4> for F32x4
Available on crate feature simd and (x86 or x86-64) only.
impl VectorMask<f32, 4> for F32x4
Available on crate feature
simd and (x86 or x86-64) only.Source§impl VectorMask<f32, 8> for F32x8
Available on crate feature simd and (x86 or x86-64) only.
impl VectorMask<f32, 8> for F32x8
Available on crate feature
simd and (x86 or x86-64) only.Source§impl VectorMask<f64, 2> for F64x2
Available on crate feature simd and (x86 or x86-64) only.
impl VectorMask<f64, 2> for F64x2
Available on crate feature
simd and (x86 or x86-64) only.Source§impl VectorMask<f64, 4> for F64x4
Available on crate feature simd and (x86 or x86-64) only.
impl VectorMask<f64, 4> for F64x4
Available on crate feature
simd and (x86 or x86-64) only.