Enum htmlescape::DecodeErrKind
source · [−]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
sourceimpl Debug for DecodeErrKind
impl Debug for DecodeErrKind
sourceimpl PartialEq<DecodeErrKind> for DecodeErrKind
impl PartialEq<DecodeErrKind> for DecodeErrKind
sourcefn eq(&self, other: &DecodeErrKind) -> bool
fn eq(&self, other: &DecodeErrKind) -> bool
impl Eq for DecodeErrKind
Auto Trait Implementations
impl !RefUnwindSafe for DecodeErrKind
impl Send for DecodeErrKind
impl Sync for DecodeErrKind
impl Unpin for DecodeErrKind
impl !UnwindSafe for DecodeErrKind
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more