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
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: usize | |
square: String |
SquareLargerRank
Fields of SquareLargerRank
rank: usize | |
square: String |
UnrecognizedPiece
Fields of UnrecognizedPiece
piece: char |
UnreadableMoves(ParseIntError)
IllegalNumCheckingPieces
Fields of IllegalNumCheckingPieces
num: u8 |
IllegalCheckState
Fields of IllegalCheckState
piece_1: PieceType | |
piece_2: PieceType |
TooManyPawns
Fields of TooManyPawns
player: Player | |
num: u8 |
PawnOnLastRow
Trait Implementations
impl From<ParseIntError> for FenBuildError
[src]
impl From<ParseIntError> for FenBuildError
fn from(err: ParseIntError) -> FenBuildError
[src]
fn from(err: ParseIntError) -> FenBuildError
Performs the conversion.
impl Debug for FenBuildError
[src]
impl Debug for FenBuildError
Auto Trait Implementations
impl Send for FenBuildError
impl Send for FenBuildError
impl Sync for FenBuildError
impl Sync for FenBuildError