Trait BoolElement

Source
pub trait BoolElement: CubeElement + Int {
    // Provided methods
    fn true_val() -> Self { ... }
    fn false_val() -> Self { ... }
    fn new_bool(val: bool) -> Self { ... }
}
Expand description

The element type for booleans for the jit backend.

Provided Methods§

Source

fn true_val() -> Self

The true value for the boolean element.

Source

fn false_val() -> Self

The false value for the boolean element.

Source

fn new_bool(val: bool) -> Self

New bool element from Rust bool.

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 BoolElement for u8

Source§

impl BoolElement for u32

Implementors§