Enum shakmaty::PositionError [] [src]

pub enum PositionError {
    Empty,
    NoKing {
        color: Color,
    },
    TooManyKings,
    PawnsOnBackrank,
    BadCastlingRights,
    InvalidEpSquare,
    OppositeCheck,
    // some variants omitted
}

Reasons for a Setup not beeing a legal Position.

Variants

Fields of NoKing

Trait Implementations

impl Debug for PositionError
[src]

[src]

Formats the value using the given formatter.

impl Display for PositionError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for PositionError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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