pub enum GameEncodeErrorKind {
IoError,
HuffmanEncodeError,
SanError,
ParseSanError,
IllegalMove,
}Expand description
Kind of error when encoding a chess game.
Variants§
IoError
An I/O error.
HuffmanEncodeError
An error during the Huffman encoding process.
SanError
An illegal or ambiguous SAN (= Standard Algebraic Notation, a notation for a chess move).
ParseSanError
An invalid SAN so it could not be parsed.
IllegalMove
An illegal move in the sequence of moves to be encoded.
Trait Implementations§
Source§impl Clone for GameEncodeErrorKind
impl Clone for GameEncodeErrorKind
Source§fn clone(&self) -> GameEncodeErrorKind
fn clone(&self) -> GameEncodeErrorKind
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 GameEncodeErrorKind
impl Debug for GameEncodeErrorKind
Source§impl PartialEq for GameEncodeErrorKind
impl PartialEq for GameEncodeErrorKind
impl Copy for GameEncodeErrorKind
impl Eq for GameEncodeErrorKind
impl StructuralPartialEq for GameEncodeErrorKind
Auto Trait Implementations§
impl Freeze for GameEncodeErrorKind
impl RefUnwindSafe for GameEncodeErrorKind
impl Send for GameEncodeErrorKind
impl Sync for GameEncodeErrorKind
impl Unpin for GameEncodeErrorKind
impl UnwindSafe for GameEncodeErrorKind
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