[][src]Enum spacebattleship::game::uniform::CannotShootReason

pub enum CannotShootReason {
    AlreadyOver,
    SelfShot,
    UnknownPlayer,
    AlreadyDefeated,
    OutOfBounds,
    AlreadyShot,
}

Reason why a particular tile could not be shot.

Variants

AlreadyOver

The game is already over.

SelfShot

The player being attacked is the player whose turn it is.

UnknownPlayer

The PlayerId given is not known to the board.

AlreadyDefeated

The player being attacked is already defeated.

OutOfBounds

The shot was out of bounds on the grid.

AlreadyShot

The tile specified was already shot.

Trait Implementations

impl Clone for CannotShootReason[src]

impl Copy for CannotShootReason[src]

impl Debug for CannotShootReason[src]

impl Eq for CannotShootReason[src]

impl From<CannotShootReason> for CannotShootReason[src]

impl PartialEq<CannotShootReason> for CannotShootReason[src]

impl StructuralEq for CannotShootReason[src]

impl StructuralPartialEq for CannotShootReason[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, 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.