Skip to main content

SimdSelect

Trait SimdSelect 

Source
pub trait SimdSelect<N: SimdValue> {
    // Required method
    fn select(self, condition: N::SimdBool, if_false: Self) -> Self;
}
Expand description

Trait for conditional selection between two values.

Required Methods§

Source

fn select(self, condition: N::SimdBool, if_false: Self) -> Self

Select between self and if_false based on condition.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SimdSelect<WideF32x4> for Vector3<SimdReal>

Available on non-SPIR-V only.
Source§

fn select( self, condition: <SimdReal as SimdValue>::SimdBool, if_false: Self, ) -> Self

Implementors§