pub enum CheckState {
Unchecked,
Checked,
Indeterminate,
}Variants§
Unchecked
The checkbox is unchecked (no fill, no mark).
Checked
The checkbox is fully checked (filled with a check mark).
Indeterminate
Some but not all descendants are checked; shown as a dash or partial fill.
Implementations§
Source§impl CheckState
impl CheckState
Sourcepub fn is_filled(self) -> bool
pub fn is_filled(self) -> bool
Whether the box shows a filled background (checked or indeterminate).
Sourcepub fn next_tristate(self) -> Self
pub fn next_tristate(self) -> Self
Cycle to the next state: Unchecked → Checked → Indeterminate → Unchecked.
Trait Implementations§
Source§impl Clone for CheckState
impl Clone for CheckState
Source§fn clone(&self) -> CheckState
fn clone(&self) -> CheckState
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 CheckState
Source§impl Debug for CheckState
impl Debug for CheckState
impl Eq for CheckState
Source§impl From<bool> for CheckState
impl From<bool> for CheckState
Source§impl Hash for CheckState
impl Hash for CheckState
Source§impl PartialEq for CheckState
impl PartialEq for CheckState
Source§fn eq(&self, other: &CheckState) -> bool
fn eq(&self, other: &CheckState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CheckState
Auto Trait Implementations§
impl Freeze for CheckState
impl RefUnwindSafe for CheckState
impl Send for CheckState
impl Sync for CheckState
impl Unpin for CheckState
impl UnsafeUnpin for CheckState
impl UnwindSafe for CheckState
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