(&self, f: &mut std::fmt::Formatter)
| 123 | |
| 124 | impl std::fmt::Display for Neighbor { |
| 125 | fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { |
| 126 | match self { |
| 127 | // important: Should match clap::ValueEnum format |
| 128 | Neighbor::North => write!(f, "north"), |
| 129 | Neighbor::NorthEast => write!(f, "north-east"), |
| 130 | Neighbor::East => write!(f, "east"), |
| 131 | Neighbor::SouthEast => write!(f, "south-east"), |
| 132 | Neighbor::South => write!(f, "south"), |
| 133 | Neighbor::SouthWest => write!(f, "south-west"), |
| 134 | Neighbor::West => write!(f, "west"), |
| 135 | Neighbor::NorthWest => write!(f, "north-west"), |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | fn neighbor(x: i64, y: i64, n: Neighbor) -> (i64, i64) { |
nothing calls this directly
no outgoing calls
no test coverage detected