pub enum Direction {
Left,
Right,
Up,
Down,
}Expand description
A movement vector in layer-local coordinates, not the edge of entry.
Variants§
Left
Move/reveal toward decreasing X; incoming push content enters from the right.
Right
Move/reveal toward increasing X; incoming push content enters from the left.
Up
Move/reveal toward decreasing Y; incoming push content enters from below.
Down
Move/reveal toward increasing Y; incoming push content enters from above.
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Forget for Direction
impl Freeze for Direction
impl Move for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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