Skip to main content

SIMDSelect

Trait SIMDSelect 

Source
pub trait SIMDSelect<V: SIMDVector>: SIMDMask {
    // Required method
    fn select(self, x: V, y: V) -> V;
}
Expand description

A vectorized “if else”.

Required Methods§

Source

fn select(self, x: V, y: V) -> V

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.

Implementors§

Source§

impl<T, const N: usize, A> SIMDSelect<Emulated<T, N, A>> for BitMask<N, A>
where T: Copy, A: Sealed, Const<N>: SupportedLaneCount, BitMask<N, A>: SIMDMask<Arch = A>, Emulated<T, N, A>: SIMDVector<Mask = BitMask<N, A>>,