pub struct InvalidEscape {
pub index: usize,
}
Expand description
An error representing an invalid escape sequence in a string.
Fields§
§index: usize
The index of the invalid escape sequence.
Implementations§
Trait Implementations§
Source§impl Clone for InvalidEscape
impl Clone for InvalidEscape
Source§fn clone(&self) -> InvalidEscape
fn clone(&self) -> InvalidEscape
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 InvalidEscape
impl Debug for InvalidEscape
Source§impl Default for InvalidEscape
impl Default for InvalidEscape
Source§fn default() -> InvalidEscape
fn default() -> InvalidEscape
Returns the “default value” for a type. Read more
Source§impl Display for InvalidEscape
impl Display for InvalidEscape
Source§impl Error for InvalidEscape
Available on crate features std
or core_error
only.
impl Error for InvalidEscape
Available on crate features
std
or core_error
only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for InvalidEscape
impl Hash for InvalidEscape
Source§impl Ord for InvalidEscape
impl Ord for InvalidEscape
Source§fn cmp(&self, other: &InvalidEscape) -> Ordering
fn cmp(&self, other: &InvalidEscape) -> 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 InvalidEscape
impl PartialEq for InvalidEscape
Source§impl PartialOrd for InvalidEscape
impl PartialOrd for InvalidEscape
impl Copy for InvalidEscape
impl Eq for InvalidEscape
impl StructuralPartialEq for InvalidEscape
Auto Trait Implementations§
impl Freeze for InvalidEscape
impl RefUnwindSafe for InvalidEscape
impl Send for InvalidEscape
impl Sync for InvalidEscape
impl Unpin for InvalidEscape
impl UnwindSafe for InvalidEscape
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