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

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

Fields of NotEnoughSections

Fields of IncorrectRankAmounts

Fields of UnrecognizedTurn

Fields of EPSquareUnreadable

Fields of EPSquareInvalid

Fields of SquareSmallerRank

Fields of SquareLargerRank

Fields of UnrecognizedPiece

Fields of IllegalNumCheckingPieces

Fields of IllegalCheckState

Fields of TooManyPawns

Trait Implementations

impl From<ParseIntError> for FenBuildError
[src]

Performs the conversion.

impl Debug for FenBuildError
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations