pub enum InvalidNodeError {
UnexpectedRootProperties(String),
UnexpectedGameInfo(String),
RepeatedMarkup(String),
MultipleMoves(String),
RepeatedIdentifier(String),
SetupAndMove(String),
KoWithoutMove(String),
MultipleMoveAnnotations(String),
UnexpectedMoveAnnotation(String),
MultipleExclusiveAnnotations(String),
InvalidProperty(String),
}
Expand description
Err type for SgfNode::validate
.
Variants§
UnexpectedRootProperties(String)
UnexpectedGameInfo(String)
RepeatedMarkup(String)
MultipleMoves(String)
RepeatedIdentifier(String)
SetupAndMove(String)
KoWithoutMove(String)
MultipleMoveAnnotations(String)
UnexpectedMoveAnnotation(String)
MultipleExclusiveAnnotations(String)
InvalidProperty(String)
Trait Implementations§
Source§impl Clone for InvalidNodeError
impl Clone for InvalidNodeError
Source§fn clone(&self) -> InvalidNodeError
fn clone(&self) -> InvalidNodeError
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 InvalidNodeError
impl Debug for InvalidNodeError
Source§impl Display for InvalidNodeError
impl Display for InvalidNodeError
Source§impl Error for InvalidNodeError
impl Error for InvalidNodeError
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 PartialEq for InvalidNodeError
impl PartialEq for InvalidNodeError
impl Eq for InvalidNodeError
impl StructuralPartialEq for InvalidNodeError
Auto Trait Implementations§
impl Freeze for InvalidNodeError
impl RefUnwindSafe for InvalidNodeError
impl Send for InvalidNodeError
impl Sync for InvalidNodeError
impl Unpin for InvalidNodeError
impl UnwindSafe for InvalidNodeError
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