Enum bughouse::Error [−][src]
pub enum Error { InvalidFen { fen: String, }, InvalidBoard, InvalidSquare, InvalidSanMove, InvalidUciMove, InvalidRank, InvalidFile, }
Expand description
Sometimes, bad stuff happens.
Variants
The FEN string is invalid
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
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more