pub enum XmlLexicalError {
InvalidUtf8,
InvalidDeclaration(String),
ForbiddenLiteralCharacter,
InvalidName(String),
InvalidNamespace(String),
DuplicateExpandedAttribute,
InvalidReference(String),
InvalidProcessingInstruction(String),
InvalidComment(String),
}Expand description
A strict XML 1.0 lexical validation failure.
Variants§
InvalidUtf8
The input is not UTF-8.
InvalidDeclaration(String)
The XML declaration does not satisfy the XML 1.0 grammar.
ForbiddenLiteralCharacter
The input contains a literal character forbidden by XML 1.0.
InvalidName(String)
An element, attribute, or processing instruction name is invalid.
InvalidNamespace(String)
A namespace declaration or qualified-name binding is invalid.
DuplicateExpandedAttribute
Two attributes resolve to the same namespace and local name.
InvalidReference(String)
An entity or character reference is invalid.
InvalidProcessingInstruction(String)
A processing instruction target is invalid or reserved.
InvalidComment(String)
A comment is not lexically valid.
Trait Implementations§
Source§impl Clone for XmlLexicalError
impl Clone for XmlLexicalError
Source§fn clone(&self) -> XmlLexicalError
fn clone(&self) -> XmlLexicalError
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 moreSource§impl Debug for XmlLexicalError
impl Debug for XmlLexicalError
impl Eq for XmlLexicalError
Source§impl PartialEq for XmlLexicalError
impl PartialEq for XmlLexicalError
impl StructuralPartialEq for XmlLexicalError
Auto Trait Implementations§
impl Freeze for XmlLexicalError
impl RefUnwindSafe for XmlLexicalError
impl Send for XmlLexicalError
impl Sync for XmlLexicalError
impl Unpin for XmlLexicalError
impl UnsafeUnpin for XmlLexicalError
impl UnwindSafe for XmlLexicalError
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