Enum shogi::MoveError [] [src]

pub enum MoveError {
    InCheck,
    Nifu,
    Uchifuzume,
    PerpetualCheckWin,
    PerpetualCheckLose,
    EnemysTurn,
    NonMovablePiece,
    Inconsistent,
    Repetition,
}

Represents an error occurred during making a move.

Variants

Trait Implementations

impl Debug for MoveError
[src]

Formats the value using the given formatter.

impl PartialEq for MoveError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for MoveError
[src]

impl Display for MoveError
[src]

Formats the value using the given formatter.

impl Error for MoveError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more