pub enum SwipeDirection {
Up,
Down,
Left,
Right,
}Expand description
Cardinal direction for swipe gestures.
Variants§
Implementations§
Source§impl SwipeDirection
impl SwipeDirection
Sourcepub const fn is_vertical(self) -> bool
pub const fn is_vertical(self) -> bool
Returns true for vertical directions.
Sourcepub const fn is_horizontal(self) -> bool
pub const fn is_horizontal(self) -> bool
Returns true for horizontal directions.
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 moreimpl Copy for SwipeDirection
Source§impl Debug for SwipeDirection
impl Debug for SwipeDirection
impl Eq for SwipeDirection
Source§impl Hash for SwipeDirection
impl Hash 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 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