Struct patch::ParseError
source · pub struct ParseError<'a> {
pub line: u32,
pub offset: usize,
pub fragment: &'a str,
pub kind: ErrorKind,
}
Expand description
Type returned when an error occurs while parsing a patch
Fields§
§line: u32
The line where the parsing error occurred
offset: usize
The offset within the input where the parsing error occurred
fragment: &'a str
The failed input
kind: ErrorKind
The actual parsing error
Trait Implementations§
source§impl<'a> Clone for ParseError<'a>
impl<'a> Clone for ParseError<'a>
source§fn clone(&self) -> ParseError<'a>
fn clone(&self) -> ParseError<'a>
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<'a> Debug for ParseError<'a>
impl<'a> Debug for ParseError<'a>
source§impl<'a> Display for ParseError<'a>
impl<'a> Display for ParseError<'a>
source§impl<'a> Error for ParseError<'a>
impl<'a> Error for ParseError<'a>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more