pub enum UnescapeError {
InvalidEscape,
InvalidHexHi,
InvalidHexLo,
}Expand description
Unescape error occurs when encountering unexpected byte sequences.
Variants§
InvalidEscape
An escape backslash character (\) was followed by a character that was
not a \, 0, t, r, n, or x.
InvalidHexHi
An escape backslash character and x indicating a hex escape (\x) were
followed by a character that was not a valid hex character
(0123456789abcdef).
InvalidHexLo
An escape backslash character, x indicating a hex escape, and the hi
nibble (\xN) were followed by a character that was not a valid hex
character (0123456789abcdef).
Trait Implementations§
Source§impl Clone for UnescapeError
impl Clone for UnescapeError
Source§fn clone(&self) -> UnescapeError
fn clone(&self) -> UnescapeError
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 UnescapeError
impl Debug for UnescapeError
impl Eq for UnescapeError
Source§impl Ord for UnescapeError
impl Ord for UnescapeError
Source§fn cmp(&self, other: &UnescapeError) -> Ordering
fn cmp(&self, other: &UnescapeError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnescapeError
impl PartialEq for UnescapeError
Source§fn eq(&self, other: &UnescapeError) -> bool
fn eq(&self, other: &UnescapeError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UnescapeError
impl PartialOrd for UnescapeError
impl StructuralPartialEq for UnescapeError
Auto Trait Implementations§
impl Freeze for UnescapeError
impl RefUnwindSafe for UnescapeError
impl Send for UnescapeError
impl Sync for UnescapeError
impl Unpin for UnescapeError
impl UnsafeUnpin for UnescapeError
impl UnwindSafe for UnescapeError
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