pub enum ErrorKind {
Show 13 variants
UnexpectedByte(u8),
UnexpectedEof,
InvalidCharRef,
DoubleDashInComment,
DoctypeMissingWhitespace,
DoctypeMissingName,
CdataEndInContent,
InvalidUtf8,
NameTooLong,
CharRefTooLong,
DoctypeBracketsTooDeep,
MalformedXmlDeclaration,
ReservedPITarget,
}Variants§
UnexpectedByte(u8)
Unexpected byte encountered.
UnexpectedEof
Unexpected end of input within a construct.
InvalidCharRef
Invalid character reference.
DoubleDashInComment
Double-hyphen (--) in comment body (XML 1.0 §2.5).
DoctypeMissingWhitespace
Missing whitespace after DOCTYPE keyword.
DoctypeMissingName
Missing or invalid name in DOCTYPE declaration.
CdataEndInContent
]]> appeared in text content (not allowed in well-formed XML).
InvalidUtf8
Invalid UTF-8 byte sequence.
NameTooLong
Name exceeded the 1000-byte limit.
CharRefTooLong
Character reference value exceeded the 7-byte limit.
DoctypeBracketsTooDeep
DOCTYPE internal subset bracket nesting exceeded the 1024 depth limit.
MalformedXmlDeclaration
Malformed XML declaration (missing version, bad syntax, invalid standalone value).
ReservedPITarget
PI target matching [Xx][Mm][Ll] appeared after the document start.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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