Enum cozy_chess::FenParseError
source · pub enum FenParseError {
InvalidBoard,
InvalidSideToMove,
InvalidCastlingRights,
InvalidEnPassant,
InvalidHalfMoveClock,
InvalidFullmoveNumber,
MissingField,
TooManyFields,
}
Expand description
An error while parsing the FEN.
Variants§
InvalidBoard
The board is invalid.
InvalidSideToMove
The side to move is invalid.
InvalidCastlingRights
The castling rights are invalid.
InvalidEnPassant
The en passant square is invalid.
InvalidHalfMoveClock
The halfmove clock is invalid.
InvalidFullmoveNumber
The fullmove number is invalid.
MissingField
The FEN is missing a field.
TooManyFields
The FEN has too many fields.
Trait Implementations§
source§impl Clone for FenParseError
impl Clone for FenParseError
source§fn clone(&self) -> FenParseError
fn clone(&self) -> FenParseError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FenParseError
impl Debug for FenParseError
source§impl Display for FenParseError
impl Display for FenParseError
impl Copy for FenParseError
Auto Trait Implementations§
impl Freeze for FenParseError
impl RefUnwindSafe for FenParseError
impl Send for FenParseError
impl Sync for FenParseError
impl Unpin for FenParseError
impl UnwindSafe for FenParseError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more