pub struct ParseLineBytesError<'a> {
pub errored_line_slice: ParsedByteSlice<'a, &'a [u8]>,
pub error: SyntaxError,
}Expand description
Error in reading a line from crate::line::parse_bytes (or
crate::line::parse_bytes_with_custom).
Fields§
§errored_line_slice: ParsedByteSlice<'a, &'a [u8]>The original line that caused the error along with the remaining bytes after the line.
error: SyntaxErrorThe underlying error that was experienced.
Trait Implementations§
Source§impl<'a> Clone for ParseLineBytesError<'a>
impl<'a> Clone for ParseLineBytesError<'a>
Source§fn clone(&self) -> ParseLineBytesError<'a>
fn clone(&self) -> ParseLineBytesError<'a>
Returns a duplicate 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 ParseLineBytesError<'a>
impl<'a> Debug for ParseLineBytesError<'a>
Source§impl Display for ParseLineBytesError<'_>
impl Display for ParseLineBytesError<'_>
Source§impl Error for ParseLineBytesError<'_>
impl Error for ParseLineBytesError<'_>
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<'a> PartialEq for ParseLineBytesError<'a>
impl<'a> PartialEq for ParseLineBytesError<'a>
impl<'a> StructuralPartialEq for ParseLineBytesError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseLineBytesError<'a>
impl<'a> RefUnwindSafe for ParseLineBytesError<'a>
impl<'a> Send for ParseLineBytesError<'a>
impl<'a> Sync for ParseLineBytesError<'a>
impl<'a> Unpin for ParseLineBytesError<'a>
impl<'a> UnwindSafe for ParseLineBytesError<'a>
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