mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-15 02:12:29 -06:00
docs: post-creation neighbor edges, no ignore result err
This commit is contained in:
@@ -61,11 +61,6 @@ impl Intersection {
|
||||
[self.up, self.down, self.left, self.right].into_iter().flatten()
|
||||
}
|
||||
|
||||
/// Returns an iterator over all directions that don't have an edge.
|
||||
pub fn empty_directions(&self) -> impl Iterator<Item = Direction> + '_ {
|
||||
DIRECTIONS.into_iter().filter(|dir| self.get(*dir).is_none())
|
||||
}
|
||||
|
||||
/// Retrieves the edge in the specified direction, if it exists.
|
||||
pub fn get(&self, direction: Direction) -> Option<Edge> {
|
||||
match direction {
|
||||
|
||||
Reference in New Issue
Block a user