pub trait BoolType: Copy {
// Required method
fn bool_(self) -> bool;
}Expand description
A trait for types that can be converted to a boolean value.
This trait is implemented for bool and &bool, allowing for a consistent
interface to obtain a boolean value from these types.
Required Methods§
Object Safety§
This trait is not object safe.