[][src]Enum spacebattleship::game::simple::CannotPlaceReason

pub enum CannotPlaceReason {
    InsufficientSpace,
    AlreadyPlaced,
    AlreadyOccupied,
}

Reason why a ship could not be placed at a given position.

Variants

InsufficientSpace

The ship did not fit in the given direction.

AlreadyPlaced

The ship was already placed.

AlreadyOccupied

The space selected overlaps a ship that was already placed.

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.