Enum escape_bytes::UnescapeError
source · 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 copy of the value. Read more
1.0.0 · 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
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 · 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
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for UnescapeError
impl PartialOrd for UnescapeError
source§fn partial_cmp(&self, other: &UnescapeError) -> Option<Ordering>
fn partial_cmp(&self, other: &UnescapeError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for UnescapeError
impl StructuralEq for UnescapeError
impl StructuralPartialEq for UnescapeError
Auto Trait Implementations§
impl RefUnwindSafe for UnescapeError
impl Send for UnescapeError
impl Sync for UnescapeError
impl Unpin 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