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§