Enum shakmaty_syzygy::SyzygyError
source · pub enum SyzygyError {
Castling,
TooManyPieces,
MissingTable {
metric: Metric,
material: Material,
},
ProbeFailed {
metric: Metric,
material: Material,
error: ProbeError,
},
}
Expand description
Error when probing tablebase.
Variants
Castling
Position has castling rights, but Syzygy tables do not contain positions with castling rights.
TooManyPieces
Position has too many pieces. Syzygy tables only support up to 6 or 7 pieces.
MissingTable
Missing table.
ProbeFailed
Probe failed.
Trait Implementations
sourceimpl Debug for SyzygyError
impl Debug for SyzygyError
sourceimpl Display for SyzygyError
impl Display for SyzygyError
sourceimpl Error for SyzygyError
impl Error for SyzygyError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for SyzygyError
impl Send for SyzygyError
impl Sync for SyzygyError
impl Unpin for SyzygyError
impl !UnwindSafe for SyzygyError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more