Enum cozy_chess::BoardBuilderError
source · pub enum BoardBuilderError {
InvalidBoard,
InvalidCastlingRights,
InvalidEnPassant,
InvalidHalfMoveClock,
InvalidFullmoveNumber,
}
Expand description
An error while building a board.
Variants§
InvalidBoard
The board 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.
Trait Implementations§
source§impl Clone for BoardBuilderError
impl Clone for BoardBuilderError
source§fn clone(&self) -> BoardBuilderError
fn clone(&self) -> BoardBuilderError
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 BoardBuilderError
impl Debug for BoardBuilderError
source§impl Display for BoardBuilderError
impl Display for BoardBuilderError
impl Copy for BoardBuilderError
Auto Trait Implementations§
impl Freeze for BoardBuilderError
impl RefUnwindSafe for BoardBuilderError
impl Send for BoardBuilderError
impl Sync for BoardBuilderError
impl Unpin for BoardBuilderError
impl UnwindSafe for BoardBuilderError
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