pub enum SlideDirection {
Forward,
Reverse,
}Expand description
Which side the outgoing page exits toward, and the incoming page enters
from, for SpaTransition::Slide. The two are always opposite — there
is no independent control over the incoming side.
Variants§
Forward
Outgoing page exits to the left, incoming page enters from the right. Matches mini-static’s original, undirectional slide.
Reverse
Outgoing page exits to the right, incoming page enters from the
left — the mirror image of SlideDirection::Forward.
Trait Implementations§
Source§impl Clone for SlideDirection
impl Clone for SlideDirection
Source§fn clone(&self) -> SlideDirection
fn clone(&self) -> SlideDirection
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 SlideDirection
Source§impl Debug for SlideDirection
impl Debug for SlideDirection
Source§impl Default for SlideDirection
impl Default for SlideDirection
Source§fn default() -> SlideDirection
fn default() -> SlideDirection
Returns the “default value” for a type. Read more
impl Eq for SlideDirection
Source§impl PartialEq for SlideDirection
impl PartialEq for SlideDirection
impl StructuralPartialEq for SlideDirection
Auto Trait Implementations§
impl Freeze for SlideDirection
impl RefUnwindSafe for SlideDirection
impl Send for SlideDirection
impl Sync for SlideDirection
impl Unpin for SlideDirection
impl UnsafeUnpin for SlideDirection
impl UnwindSafe for SlideDirection
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.