[−][src]Trait spacebattleship::board::NeighborIterState
State type for the neighbor iterator.
Associated Types
type Dimensions: Dimensions + ?Sized
Required methods
fn start(
dim: &Self::Dimensions,
coord: <Self::Dimensions as Dimensions>::Coordinate
) -> Self
dim: &Self::Dimensions,
coord: <Self::Dimensions as Dimensions>::Coordinate
) -> Self
Construct an instance of this iter state given the arguments.
fn next(
&mut self,
dim: &Self::Dimensions
) -> Option<<Self::Dimensions as Dimensions>::Coordinate>
&mut self,
dim: &Self::Dimensions
) -> Option<<Self::Dimensions as Dimensions>::Coordinate>
Get the next item given a reference to the parent type.