pub trait Bool {
type Not: Bool;
type Implies<B: Bool>: Bool;
const VALUE: bool;
}Expand description
A Boolean value, encoded as a type.
Required Associated Constants§
Required Associated Types§
Sourcetype Not: Bool
type Not: Bool
The negation of the Boolean value.
The type alias Not<B> is a nicer way to access this.
Sourcetype Implies<B: Bool>: Bool
type Implies<B: Bool>: Bool
The value of Self -> B.
The type alias Implies<A, B> is a nicer way to access this.
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.