pub enum DismissDirection {
Vertical,
Horizontal,
EndToStart,
StartToEnd,
Up,
Down,
None,
}Expand description
The direction in which a Dismissible can be dismissed.
Variants§
Vertical
The Dismissible can be dismissed by dragging either up or down.
Horizontal
The Dismissible can be dismissed by dragging either left or right.
EndToStart
The Dismissible can be dismissed by dragging in the reverse of the reading direction
(e.g., from right to left in left-to-right languages).
StartToEnd
The Dismissible can be dismissed by dragging in the reading direction (e.g., from
left to right in left-to-right languages).
Up
The Dismissible can be dismissed by dragging up only.
Down
The Dismissible can be dismissed by dragging down only.
None
The Dismissible cannot be dismissed by dragging.
Trait Implementations§
Source§impl Clone for DismissDirection
impl Clone for DismissDirection
impl Copy for DismissDirection
Source§impl Debug for DismissDirection
impl Debug for DismissDirection
impl Eq for DismissDirection
Source§impl Hash for DismissDirection
impl Hash for DismissDirection
Source§impl PartialEq for DismissDirection
impl PartialEq for DismissDirection
impl StructuralPartialEq for DismissDirection
Auto Trait Implementations§
impl Forget for DismissDirection
impl Freeze for DismissDirection
impl Move for DismissDirection
impl RefUnwindSafe for DismissDirection
impl Send for DismissDirection
impl Sync for DismissDirection
impl Unpin for DismissDirection
impl UnsafeUnpin for DismissDirection
impl UnwindSafe for DismissDirection
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.