#[repr(i8)]pub enum Direction {
None = 4,
Right = 1,
Left = -1,
Up = 2,
Down = -2,
}Expand description
Hinting directions.
The values are such that dir1 + dir2 == 0 when the directions are
opposite.
Variants§
None = 4
Undetermined direction.
Right = 1
Toward the right.
Left = -1
Toward the left.
Up = 2
Toward the top.
Down = -2
Toward the bottom.
Implementations§
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze 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