pub trait ConstBool {
type Value: Sized;
const VALUE: Self::Value;
}
Expand description
Allows to convert compile-time constants into type-level booleans.
See also the const_bool
macro, and the True
and False
types.
Required Associated Constants§
Required Associated Types§
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.