Enum advent_solutions::Direction
[−]
[src]
pub enum Direction {
Up,
Right,
Down,
Left,
}Variants
UpRightDownLeft
Methods
impl Direction[src]
pub fn cw(&self) -> Direction[src]
pub fn reverse(&self) -> Direction[src]
pub fn ccw(&self) -> Direction[src]
Trait Implementations
impl Copy for Direction[src]
impl Clone for Direction[src]
fn clone(&self) -> Direction[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for Direction[src]
fn eq(&self, __arg_0: &Direction) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for Direction[src]
impl Debug for Direction[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Hash for Direction[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Into<(isize, isize)> for Direction[src]
impl<'a> Into<(isize, isize)> for &'a Direction[src]
impl Add<(isize, isize)> for Direction[src]
type Output = (isize, isize)
The resulting type after applying the + operator.
fn add(self, (x, y): (isize, isize)) -> Self::Output[src]
Performs the + operation.
impl<'a> Add<(isize, isize)> for &'a Direction[src]
type Output = (isize, isize)
The resulting type after applying the + operator.
fn add(self, o: (isize, isize)) -> Self::Output[src]
Performs the + operation.
impl Add<(usize, usize)> for Direction[src]
type Output = (usize, usize)
The resulting type after applying the + operator.
fn add(self, (x, y): (usize, usize)) -> Self::Output[src]
Performs the + operation.
impl<'a> Add<(usize, usize)> for &'a Direction[src]
type Output = (usize, usize)
The resulting type after applying the + operator.
fn add(self, o: (usize, usize)) -> Self::Output[src]
Performs the + operation.
impl Add<Direction> for (isize, isize)[src]
type Output = (isize, isize)
The resulting type after applying the + operator.
fn add(self, facing: Direction) -> Self::Output[src]
Performs the + operation.
impl<'a> Add<&'a Direction> for (isize, isize)[src]
type Output = (isize, isize)
The resulting type after applying the + operator.
fn add(self, facing: &'a Direction) -> Self::Output[src]
Performs the + operation.
impl Add<Direction> for (usize, usize)[src]
type Output = (usize, usize)
The resulting type after applying the + operator.
fn add(self, facing: Direction) -> Self::Output[src]
Performs the + operation.
impl<'a> Add<&'a Direction> for (usize, usize)[src]
type Output = (usize, usize)
The resulting type after applying the + operator.
fn add(self, facing: &'a Direction) -> Self::Output[src]
Performs the + operation.
impl AddAssign<Direction> for (isize, isize)[src]
fn add_assign(&mut self, other: Direction)[src]
Performs the += operation.
impl<'a> AddAssign<&'a Direction> for (isize, isize)[src]
fn add_assign(&mut self, other: &'a Direction)[src]
Performs the += operation.
impl AddAssign<Direction> for (usize, usize)[src]
fn add_assign(&mut self, other: Direction)[src]
Performs the += operation.
impl<'a> AddAssign<&'a Direction> for (usize, usize)[src]
fn add_assign(&mut self, other: &'a Direction)[src]
Performs the += operation.