pub enum SgfParseError {
LexerError(LexerError),
UnexpectedGameTreeStart,
UnexpectedGameTreeEnd,
UnexpectedProperty,
UnexpectedEndOfData,
UnexpectedGameType,
InvalidFF4Property,
}
Expand description
Error type for failures parsing sgf from text.
Variants§
LexerError(LexerError)
UnexpectedGameTreeStart
UnexpectedGameTreeEnd
UnexpectedProperty
UnexpectedEndOfData
UnexpectedGameType
InvalidFF4Property
Trait Implementations§
Source§impl Clone for SgfParseError
impl Clone for SgfParseError
Source§fn clone(&self) -> SgfParseError
fn clone(&self) -> SgfParseError
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 SgfParseError
impl Debug for SgfParseError
Source§impl Display for SgfParseError
impl Display for SgfParseError
Source§impl Error for SgfParseError
impl Error for SgfParseError
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<LexerError> for SgfParseError
impl From<LexerError> for SgfParseError
Source§fn from(error: LexerError) -> Self
fn from(error: LexerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SgfParseError
impl PartialEq for SgfParseError
impl Copy for SgfParseError
impl Eq for SgfParseError
impl StructuralPartialEq for SgfParseError
Auto Trait Implementations§
impl Freeze for SgfParseError
impl RefUnwindSafe for SgfParseError
impl Send for SgfParseError
impl Sync for SgfParseError
impl Unpin for SgfParseError
impl UnwindSafe for SgfParseError
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