[][src]Enum spacebattleship::board::CannotPlaceReason

pub enum CannotPlaceReason {
    AlreadyPlaced,
    InvalidProjection,
    AlreadyOccupied,
}

Reason why a ship could not be placed with a given projection.

Variants

AlreadyPlaced

The given ShipId was already placed.

InvalidProjection

The projection provided was not a valid projection of the specified ship.

AlreadyOccupied

One or more of the cells in the projection was already occupied.

Trait Implementations

impl Clone for CannotPlaceReason[src]

impl Copy for CannotPlaceReason[src]

impl Debug for CannotPlaceReason[src]

impl Display for CannotPlaceReason[src]

impl Eq for CannotPlaceReason[src]

impl Error for CannotPlaceReason[src]

impl PartialEq<CannotPlaceReason> for CannotPlaceReason[src]

impl StructuralEq for CannotPlaceReason[src]

impl StructuralPartialEq for CannotPlaceReason[src]

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]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.