Trait palette::bool_mask::Select

source ·
pub trait Select<T>
where T: HasBoolMask<Mask = Self>,
{ // Required method fn select(self, a: T, b: T) -> T; }
Expand description

Makes a mask bale to select between two values.

Required Methods§

source

fn select(self, a: T, b: T) -> T

Select lanes from a when corresponding lanes in self are true, and select from b when false.

Implementations on Foreign Types§

source§

impl Select<f32x4> for f32x4

source§

fn select(self, a: Self, b: Self) -> Self

source§

impl Select<f32x8> for f32x8

source§

fn select(self, a: Self, b: Self) -> Self

source§

impl Select<f64x2> for f64x2

source§

fn select(self, a: Self, b: Self) -> Self

source§

impl Select<f64x4> for f64x4

source§

fn select(self, a: Self, b: Self) -> Self

source§

impl<T> Select<T> for bool
where T: HasBoolMask<Mask = Self>,

source§

fn select(self, a: T, b: T) -> T

Implementors§