cosmic::cosmic_theme::palette::bool_mask

Trait 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 = bool>,

Source§

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

Implementors§