pub enum DecodeErrKind {
UnknownEntity,
MalformedNumEscape,
InvalidCharacter,
PrematureEnd,
IoError(Error),
EncodingError,
}
Variants§
UnknownEntity
A non-existent named entity was referenced. Example: &thisentitydoesnotexist
MalformedNumEscape
A numerical escape sequence (&# or &#x) containing an invalid character.
Examples:  a
, oo
InvalidCharacter
A numerical escape sequence (&# or &#x) resolved to an invalid unicode code point.
Example: �
PrematureEnd
The input ended prematurely (ie. inside an unterminated named entity sequence).
IoError(Error)
An IO error occured.
EncodingError
The supplied Reader produces invalid UTF-8.
Trait Implementations§
Source§impl Debug for DecodeErrKind
impl Debug for DecodeErrKind
Source§impl PartialEq for DecodeErrKind
impl PartialEq for DecodeErrKind
impl Eq for DecodeErrKind
Auto Trait Implementations§
impl Freeze for DecodeErrKind
impl !RefUnwindSafe for DecodeErrKind
impl Send for DecodeErrKind
impl Sync for DecodeErrKind
impl Unpin for DecodeErrKind
impl !UnwindSafe for DecodeErrKind
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