Skip to main content

SimdMask

Trait SimdMask 

Source
pub trait SimdMask:
    Sized
    + Copy
    + Debug
    + Send
    + Sync
    + BitAnd<Self, Output = Self>
    + BitOr<Self, Output = Self> {
    type Descriptor: SimdDescriptor;

    // Required methods
    fn if_then_else_f32(
        self,
        if_true: <<Self as SimdMask>::Descriptor as SimdDescriptor>::F32Vec,
        if_false: <<Self as SimdMask>::Descriptor as SimdDescriptor>::F32Vec,
    ) -> <<Self as SimdMask>::Descriptor as SimdDescriptor>::F32Vec;
    fn if_then_else_i32(
        self,
        if_true: <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec,
        if_false: <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec,
    ) -> <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec;
    fn maskz_i32(
        self,
        v: <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec,
    ) -> <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec;
    fn all(self) -> bool;
    fn andnot(self, rhs: Self) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn if_then_else_f32( self, if_true: <<Self as SimdMask>::Descriptor as SimdDescriptor>::F32Vec, if_false: <<Self as SimdMask>::Descriptor as SimdDescriptor>::F32Vec, ) -> <<Self as SimdMask>::Descriptor as SimdDescriptor>::F32Vec

Source

fn if_then_else_i32( self, if_true: <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec, if_false: <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec, ) -> <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec

Source

fn maskz_i32( self, v: <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec, ) -> <<Self as SimdMask>::Descriptor as SimdDescriptor>::I32Vec

Source

fn all(self) -> bool

Source

fn andnot(self, rhs: Self) -> 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.

Implementations on Foreign Types§

Source§

impl SimdMask for bool

Source§

type Descriptor = ScalarDescriptor

Source§

fn if_then_else_f32(self, if_true: f32, if_false: f32) -> f32

Source§

fn if_then_else_i32( self, if_true: Wrapping<i32>, if_false: Wrapping<i32>, ) -> Wrapping<i32>

Source§

fn maskz_i32(self, v: Wrapping<i32>) -> Wrapping<i32>

Source§

fn all(self) -> bool

Source§

fn andnot(self, rhs: Self) -> Self

Implementors§