pub struct SwitchIndicatorVisualState {
pub checked: bool,
pub hovered: bool,
pub pressed: bool,
pub focused: bool,
pub enabled: bool,
}Fields§
§checked: bool§hovered: bool§pressed: bool§focused: bool§enabled: boolImplementations§
Source§impl SwitchIndicatorVisualState
impl SwitchIndicatorVisualState
pub fn new( checked: bool, hovered: bool, pressed: bool, focused: bool, enabled: bool, ) -> Self
pub fn pressable_state(&self) -> PressableIndicatorVisualState
Trait Implementations§
Source§impl Clone for SwitchIndicatorVisualState
impl Clone for SwitchIndicatorVisualState
Source§fn clone(&self) -> SwitchIndicatorVisualState
fn clone(&self) -> SwitchIndicatorVisualState
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 SwitchIndicatorVisualState
Source§impl Debug for SwitchIndicatorVisualState
impl Debug for SwitchIndicatorVisualState
impl Eq for SwitchIndicatorVisualState
impl StructuralPartialEq for SwitchIndicatorVisualState
Auto Trait Implementations§
impl Freeze for SwitchIndicatorVisualState
impl RefUnwindSafe for SwitchIndicatorVisualState
impl Send for SwitchIndicatorVisualState
impl Sync for SwitchIndicatorVisualState
impl Unpin for SwitchIndicatorVisualState
impl UnsafeUnpin for SwitchIndicatorVisualState
impl UnwindSafe for SwitchIndicatorVisualState
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