Enum stfu8::DecodeErrorKind
source · pub enum DecodeErrorKind {
UnescapedSlash,
InvalidValue,
HexNumberToShort,
InvalidHexDigit,
}
Variants§
UnescapedSlash
A single unescaped backslash was found. Either the following character doesn’t start a valid escape sequence or it is at the end of the string.
InvalidValue
The value from a ‘\x’ or ‘\u’ hexadecimal escape sequence is out of range for the decode.
HexNumberToShort
There are not enough characters after a ‘\x’ or ‘\u’ to build a escape sequence.
InvalidHexDigit
The required characters after a ‘\x’ or ‘\u’ are not all valid hex digits.
Trait Implementations§
source§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
source§fn eq(&self, other: &DecodeErrorKind) -> bool
fn eq(&self, other: &DecodeErrorKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl UnwindSafe for DecodeErrorKind
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