Enum rdcl_aoc_helpers::direction::Direction
source · pub enum Direction {
Up,
Down,
Left,
Right,
}
Expand description
There are four cardinal directions: Up, down, left, and right. You can also think of these as north, south, west and east.
Variants
Up
Down
Left
Right
Implementations
sourceimpl Direction
impl Direction
sourcepub fn turn_right(&self) -> Direction
pub fn turn_right(&self) -> Direction
Turn one step to the right.
Trait Implementations
impl Copy for Direction
Auto Trait Implementations
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more