[][src]Enum pleco::board::FenBuildError

pub enum FenBuildError {
    NotEnoughSections {
        sections: usize,
    },
    IncorrectRankAmounts {
        ranks: usize,
    },
    UnrecognizedTurn {
        turn: String,
    },
    EPSquareUnreadable {
        ep: String,
    },
    EPSquareInvalid {
        ep: String,
    },
    SquareSmallerRank {
        rank: usize,
        square: String,
    },
    SquareLargerRank {
        rank: usize,
        square: String,
    },
    UnrecognizedPiece {
        piece: char,
    },
    UnreadableMoves(ParseIntError),
    IllegalNumCheckingPieces {
        num: u8,
    },
    IllegalCheckState {
        piece_1: PieceType,
        piece_2: PieceType,
    },
    TooManyPawns {
        player: Player,
        num: u8,
    },
    PawnOnLastRow,
}

Represents possible Errors encountered while building a Board from a fen string.

Variants

NotEnoughSections

Fields of NotEnoughSections

sections: usize
IncorrectRankAmounts

Fields of IncorrectRankAmounts

ranks: usize
UnrecognizedTurn

Fields of UnrecognizedTurn

turn: String
EPSquareUnreadable

Fields of EPSquareUnreadable

ep: String
EPSquareInvalid

Fields of EPSquareInvalid

ep: String
SquareSmallerRank

Fields of SquareSmallerRank

rank: usizesquare: String
SquareLargerRank

Fields of SquareLargerRank

rank: usizesquare: String
UnrecognizedPiece

Fields of UnrecognizedPiece

piece: char
UnreadableMoves(ParseIntError)IllegalNumCheckingPieces

Fields of IllegalNumCheckingPieces

num: u8
IllegalCheckState

Fields of IllegalCheckState

piece_1: PieceTypepiece_2: PieceType
TooManyPawns

Fields of TooManyPawns

player: Playernum: u8
PawnOnLastRow

Trait Implementations

impl From<ParseIntError> for FenBuildError[src]

impl Debug for FenBuildError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.