pub fn dx_dy(self) -> [i32; 2] {
    match self {
      Self::North => [0, 1],
      Self::South => [0, -1],
      Self::East => [1, 0],
      Self::West => [-1, 0],
    }
  }
/// Returns the change in x and y respectively that would result from moving
/// forward 1 unit in this direction. North and East are positive.
Returns the change in x and y respectively that would result from moving
forward 1 unit in this direction. North and East are positive.
Returns the change in x and y respectively that would result from moving forward 1 unit in this direction . North and East are positive .
pub fn dx_dy(self) -> [i32; 2] {
    match self {
      Self::North => [0, 1],
      Self::South => [0, -1],
      Self::East => [1, 0],
      Self::West => [-1, 0],
    }
  }
pub fn dx_dy ( self ) -> [ i32 ; 2 ] { match self { Self :: North => [ 0 , 1 ] , Self :: South => [ 0 , - 1 ] , Self :: East => [ 1 , 0 ] , Self :: West => [ - 1 , 0 ] , } }
Returns the change in x and y respectively that would result from moving
forward 1 unit in this direction.
Returns the change in x and y respectively that would result from moving forward 1 unit in this direction .
self
self