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
Source§fn clone(&self) -> ToggleableState
fn clone(&self) -> ToggleableState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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§fn from(on: bool) -> ToggleableState
fn from(on: bool) -> ToggleableState
Converts to this type from the input type.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more