[][src]Enum magpie::othello::OthelloError

pub enum OthelloError {
    IllegalMove,
    MultipleMovesAttempted,
    PiecesOverlapping,
}

This enum represents errors that may occur when using the Othello board.

Variants

IllegalMove

Indicates that an illegal move was attempted.

MultipleMovesAttempted

Indicates that multiple moves were attempted at once.

PiecesOverlapping

Indicates that the operation would have resulted in one or more stones overlapping.

Trait Implementations

impl Debug for OthelloError[src]

impl Eq for OthelloError[src]

impl Hash for OthelloError[src]

impl PartialEq<OthelloError> for OthelloError[src]

impl StructuralEq for OthelloError[src]

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