pub trait VectorMask<T, const N: usize>where
T: Scalar,{
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".