[−][src]Trait spacebattleship::ships::ProjectIterState
State type for the ship projection iterator.
Associated Types
Loading content...Required methods
fn start(shape: &Self::ShipShape, dim: &D, coord: D::Coordinate) -> Self
Construct an instance of this iter state given the arguments.
fn next(
&mut self,
shape: &Self::ShipShape,
dim: &D
) -> Option<ShapeProjection<D::Coordinate>>
&mut self,
shape: &Self::ShipShape,
dim: &D
) -> Option<ShapeProjection<D::Coordinate>>
Get the next possible projection of the ship's shape.