Trait palette::bool_mask::BoolMask

source ·
pub trait BoolMask {
    // Required methods
    fn from_bool(value: bool) -> Self;
    fn is_true(&self) -> bool;
    fn is_false(&self) -> bool;
}
Expand description

Basic methods for boolean masks.

Required Methods§

source

fn from_bool(value: bool) -> Self

Create a new mask where each lane is set to value.

source

fn is_true(&self) -> bool

Checks if all lanes in the mask are true.

source

fn is_false(&self) -> bool

Checks if all lanes in the mask are false.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BoolMask for bool

source§

fn from_bool(value: bool) -> Self

source§

fn is_true(&self) -> bool

source§

fn is_false(&self) -> bool

Implementors§