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<T> Select<T> for bool
where T: HasBoolMask<Mask = Self>,

source§

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

Implementors§