2020-03-19 09:30:54 +01:00
|
|
|
/// A four cardinal direction.
|
2020-03-14 05:26:59 +01:00
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
|
|
|
pub enum Direction {
|
2020-03-19 09:30:54 +01:00
|
|
|
/// ↑
|
2020-03-14 05:26:59 +01:00
|
|
|
Up,
|
2020-03-19 09:30:54 +01:00
|
|
|
/// ↓
|
2020-03-14 05:26:59 +01:00
|
|
|
Down,
|
2020-03-19 09:30:54 +01:00
|
|
|
/// ←
|
2020-03-14 05:26:59 +01:00
|
|
|
Left,
|
2020-03-19 09:30:54 +01:00
|
|
|
/// →
|
2020-03-14 05:26:59 +01:00
|
|
|
Right,
|
|
|
|
|
}
|