palette::bool_mask

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§