pub enum SwipeDirection {
Up,
Down,
Left,
Right,
}Expand description
Direction of a recognized swipe.
Variants§
Up
Swipe toward negative y.
Down
Swipe toward positive y.
Left
Swipe toward negative x.
Right
Swipe toward positive x.
Trait Implementations§
Source§impl Clone for SwipeDirection
impl Clone for SwipeDirection
Source§fn clone(&self) -> SwipeDirection
fn clone(&self) -> SwipeDirection
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 SwipeDirection
impl Debug for SwipeDirection
Source§impl PartialEq for SwipeDirection
impl PartialEq for SwipeDirection
Source§fn eq(&self, other: &SwipeDirection) -> bool
fn eq(&self, other: &SwipeDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SwipeDirection
impl Eq for SwipeDirection
impl StructuralPartialEq for SwipeDirection
Auto Trait Implementations§
impl Freeze for SwipeDirection
impl RefUnwindSafe for SwipeDirection
impl Send for SwipeDirection
impl Sync for SwipeDirection
impl Unpin for SwipeDirection
impl UnsafeUnpin for SwipeDirection
impl UnwindSafe for SwipeDirection
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