pub struct SwitchConfig {
pub modifier: Modifier,
pub checked_track_color: Color,
pub unchecked_track_color: Color,
pub checked_thumb_color: Color,
pub unchecked_thumb_color: Color,
pub unchecked_border_color: Color,
}Expand description
Configuration for Switch.
Fields§
§modifier: Modifier§checked_track_color: Color§unchecked_track_color: Color§checked_thumb_color: Color§unchecked_thumb_color: Color§unchecked_border_color: ColorTrait Implementations§
Source§impl Clone for SwitchConfig
impl Clone for SwitchConfig
Source§fn clone(&self) -> SwitchConfig
fn clone(&self) -> SwitchConfig
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 moreSource§impl Debug for SwitchConfig
impl Debug for SwitchConfig
Auto Trait Implementations§
impl !RefUnwindSafe for SwitchConfig
impl !Send for SwitchConfig
impl !Sync for SwitchConfig
impl !UnwindSafe for SwitchConfig
impl Freeze for SwitchConfig
impl Unpin for SwitchConfig
impl UnsafeUnpin for SwitchConfig
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