Skip to main content

StaticBool

Trait StaticBool 

Source
pub trait StaticBool {
    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".

Implementors§

Source§

impl Bool for False

Source§

const VALUE: bool = false

Source§

impl Bool for True

Source§

const VALUE: bool = true

Source§

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

Source§

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

Source§

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

Source§

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