pub trait HasBool {
// Required methods
fn get_bool(&self) -> bool;
fn set_bool(&mut self, state: bool) -> Action;
}
Expand description
Read / write a boolean value
The value true
means checked, selected or toggled on.
pub trait HasBool {
// Required methods
fn get_bool(&self) -> bool;
fn set_bool(&mut self, state: bool) -> Action;
}
Read / write a boolean value
The value true
means checked, selected or toggled on.