pub enum ToggleableState {
On,
Off,
Indeterminate,
}Expand description
Whether a check box or switch is on, off or partly on: Compose’s
ToggleableState. A check box over a list whose items are partly checked
is Indeterminate.
Variants§
On
The control is on or checked.
Off
The control is off or unchecked.
Indeterminate
The control is partly on, as a check box over items of which some are checked.
Trait Implementations§
Source§impl Clone for ToggleableState
impl Clone for ToggleableState
impl Copy for ToggleableState
Source§impl Debug for ToggleableState
impl Debug for ToggleableState
impl Eq for ToggleableState
Source§impl From<bool> for ToggleableState
impl From<bool> for ToggleableState
Source§impl Hash for ToggleableState
impl Hash for ToggleableState
Source§impl PartialEq for ToggleableState
impl PartialEq for ToggleableState
impl StructuralPartialEq for ToggleableState
Auto Trait Implementations§
impl Freeze for ToggleableState
impl RefUnwindSafe for ToggleableState
impl Send for ToggleableState
impl Sync for ToggleableState
impl Unpin for ToggleableState
impl UnsafeUnpin for ToggleableState
impl UnwindSafe for ToggleableState
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