Enum minorhacks_chess::Error [−][src]
pub enum Error { InvalidFen { fen: String, }, InvalidBoard, InvalidSquare, InvalidSanMove, InvalidUciMove, InvalidRank, InvalidFile, }
Sometimes, bad stuff happens.
Variants
The FEN string is invalid
Show fields
Fields of InvalidFen
fen: String
The board created from BoardBuilder was found to be invalid
An attempt was made to create a square from an invalid string
An attempt was made to create a move from an invalid SAN string
An atempt was made to create a move from an invalid UCI string
An attempt was made to convert a string not equal to “1”-“8” to a rank
An attempt was made to convert a string not equal to “a”-“h” to a file
Trait Implementations
impl Fail for Error
[src]
impl Fail for Error
[src]fn cause(&self) -> Option<&dyn Fail>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more