pub enum ParseErrorKind {
Element,
Attribute,
Text,
Cdata,
Comment,
Declaration,
Unknown,
General,
}Expand description
Specifies what XML construct was being parsed when an error occurred.
Each variant maps to a TinyXML2 XML_ERROR_PARSING_* error code.
Variants§
Element
Error parsing an element tag.
Attribute
Error parsing an attribute.
Text
Error parsing text content.
Cdata
Error parsing a CDATA section.
Comment
Error parsing a comment.
Declaration
Error parsing an XML declaration.
Unknown
Error parsing an unknown construct.
General
General parse error not specific to any construct.
Implementations§
Source§impl ParseErrorKind
impl ParseErrorKind
Sourcepub const fn error_name(self) -> &'static str
pub const fn error_name(self) -> &'static str
Returns the TinyXML2-compatible error name for this parse error kind.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParseErrorKind
Source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
impl Eq for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
Source§fn eq(&self, other: &ParseErrorKind) -> bool
fn eq(&self, other: &ParseErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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