pub enum Direction {
Up,
Right,
Down,
Left,
}Expand description
A way to move across the plane: up, right, down or left.
Not the same thing as a Side, which is a place on a cell rather than a way to move — see
Vocabulary in docs/model.md. A figure reasons in directions; a
fragment is told sides, and the translation between the two happens where a figure places its
pieces.
Variants§
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 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