#[repr(u8)]pub enum ToggleStyle {
Checkbox = 0,
Switch = 1,
}Expand description
How a control that turns a bool on and off looks.
Variants§
Checkbox = 0
A tick box before its title.
Switch = 1
A switch at the end of its title, as in settings.
Implementations§
Trait Implementations§
Source§impl Clone for ToggleStyle
impl Clone for ToggleStyle
Source§fn clone(&self) -> ToggleStyle
fn clone(&self) -> ToggleStyle
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 ToggleStyle
Source§impl Debug for ToggleStyle
impl Debug for ToggleStyle
Source§impl Default for ToggleStyle
impl Default for ToggleStyle
Source§fn default() -> ToggleStyle
fn default() -> ToggleStyle
Returns the “default value” for a type. Read more
impl Eq for ToggleStyle
Source§impl PartialEq for ToggleStyle
impl PartialEq for ToggleStyle
impl StructuralPartialEq for ToggleStyle
Auto Trait Implementations§
impl Freeze for ToggleStyle
impl RefUnwindSafe for ToggleStyle
impl Send for ToggleStyle
impl Sync for ToggleStyle
impl Unpin for ToggleStyle
impl UnsafeUnpin for ToggleStyle
impl UnwindSafe for ToggleStyle
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