Trait rdcl_aoc_helpers::grid::neighbours::WithNeighbours
source · pub trait WithNeighbours {
fn neighbours(
&self,
position: (usize, usize),
include_diagonals: bool
) -> Vec<(usize, usize)>;
}
Expand description
Allows easy fetching of neighbours of a given position.