pub trait ClassToggle {
// Required method
fn to_class_toggle(&self) -> bool;
}Expand description
Required Methods§
Sourcefn to_class_toggle(&self) -> bool
fn to_class_toggle(&self) -> bool
From ClassToggle.
Converts the type into a boolean.
Some(x)->trueSome(true)->trueSome(false)->falseNone->false
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".