pub enum Toggled {
None,
False,
True,
Mixed,
}Expand description
The checked state of a toggleable control (checkbox, switch, radio).
Variants§
None
Not applicable — the control does not toggle.
False
Unchecked.
True
Checked.
Mixed
Partly checked: some of what this stands for is on and some is not.
It is a third answer rather than a second no. A “select all” that reads unchecked while three of its five rows are ticked is telling a reader something false, and the platform’s own vocabulary has the word for it.
Trait Implementations§
impl Copy for Toggled
impl Eq for Toggled
impl StructuralPartialEq for Toggled
Auto Trait Implementations§
impl Freeze for Toggled
impl RefUnwindSafe for Toggled
impl Send for Toggled
impl Sync for Toggled
impl Unpin for Toggled
impl UnsafeUnpin for Toggled
impl UnwindSafe for Toggled
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more