pub enum BoardBuilderError {
TwoKings,
PawnOnLast,
TwoPieces,
TurnAlreadySet,
CastleRightAlreadySet,
EnPassantAlreadySet,
}Expand description
The BoardBuilderError enum is the error type produced by the BoardBuilder.
Variants§
Trait Implementations§
Source§impl Clone for BoardBuilderError
impl Clone for BoardBuilderError
Source§fn clone(&self) -> BoardBuilderError
fn clone(&self) -> BoardBuilderError
Returns a duplicate 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
Source§impl Error for BoardBuilderError
impl Error for BoardBuilderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BoardBuilderError> for FenLoadError
impl From<BoardBuilderError> for FenLoadError
Source§fn from(source: BoardBuilderError) -> Self
fn from(source: BoardBuilderError) -> Self
Converts to this type from the input type.
Source§impl Hash for BoardBuilderError
impl Hash for BoardBuilderError
Source§impl PartialEq for BoardBuilderError
impl PartialEq for BoardBuilderError
impl Copy for BoardBuilderError
impl Eq for BoardBuilderError
impl StructuralPartialEq 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