[][src]Struct spacebattleship::game::simple::Placement

pub struct Placement(_);

Represents a placement of a ship. Allows extracting the orientation and start, as well as iterating the coordinates.

Implementations

impl Placement[src]

pub fn orientation(&self) -> Orientation[src]

pub fn start(&self) -> &Coordinate[src]

Get the coordinate where this placement starts.

Trait Implementations

impl Deref for Placement[src]

type Target = [Coordinate]

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]