Trait Bool

Source
pub trait Bool {
    const VALUE: bool;
}
Expand description

A type that expresses a boolean value.

Required Associated Constants§

Source

const VALUE: bool

The runtime boolean value.

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.

Implementors§

Source§

impl Bool for False

Source§

const VALUE: bool = false

Source§

impl Bool for True

Source§

const VALUE: bool = true

Source§

impl<A: Bool> Bool for Not<A>

Source§

impl<A: Bool, B: Bool> Bool for And<A, B>

Source§

impl<A: Bool, B: Bool> Bool for Or<A, B>

Source§

impl<A: Bool, B: Bool> Bool for Xor<A, B>