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.

Required Methods

Returns all neighbours of a given position.

Implementations on Foreign Types

Implementors