pub enum ToggleHandleBehavior {
Follow,
Snap,
}Expand description
Controls the switching behavior of the switch.
The corresponding style prop is ToggleButtonBehavior
Variants§
Follow
The switch foreground item will follow the position of the cursor. The toggle event happens when the cursor passes the 50% threshold.
Snap
The switch foreground item will “snap” from being toggled off/on when the cursor passes the 50% threshold.
Trait Implementations§
Source§impl Clone for ToggleHandleBehavior
impl Clone for ToggleHandleBehavior
Source§fn clone(&self) -> ToggleHandleBehavior
fn clone(&self) -> ToggleHandleBehavior
Returns a duplicate of the value. Read more
1.0.0 · 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 ToggleHandleBehavior
impl Debug for ToggleHandleBehavior
Source§impl PartialEq for ToggleHandleBehavior
impl PartialEq for ToggleHandleBehavior
Source§impl StylePropValue for ToggleHandleBehavior
impl StylePropValue for ToggleHandleBehavior
fn debug_view(&self) -> Option<Box<dyn View>>
fn interpolate(&self, _other: &Self, _value: f64) -> Option<Self>
fn combine(&self, _other: &Self) -> CombineResult<Self>
Source§fn content_hash(&self) -> u64
fn content_hash(&self) -> u64
Compute a content-based hash for this value. Read more
impl StructuralPartialEq for ToggleHandleBehavior
Auto Trait Implementations§
impl Freeze for ToggleHandleBehavior
impl RefUnwindSafe for ToggleHandleBehavior
impl Send for ToggleHandleBehavior
impl Sync for ToggleHandleBehavior
impl Unpin for ToggleHandleBehavior
impl UnwindSafe for ToggleHandleBehavior
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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