pub struct ReaderStrError<'a> {
pub errored_line: &'a str,
pub error: SyntaxError,
}Expand description
Error in reading a line from a crate::Reader constructed with crate::Reader::from_str.
Fields§
§errored_line: &'a strThe original line that caused the error.
The Reader exposes this to the user so that it can continue to the next line when
crate::Reader::read_line is called again.
error: SyntaxErrorThe underlying error that was experienced.
Trait Implementations§
Source§impl<'a> Clone for ReaderStrError<'a>
impl<'a> Clone for ReaderStrError<'a>
Source§fn clone(&self) -> ReaderStrError<'a>
fn clone(&self) -> ReaderStrError<'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 ReaderStrError<'a>
impl<'a> Debug for ReaderStrError<'a>
Source§impl Display for ReaderStrError<'_>
impl Display for ReaderStrError<'_>
Source§impl Error for ReaderStrError<'_>
impl Error for ReaderStrError<'_>
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 ReaderStrError<'a>
impl<'a> PartialEq for ReaderStrError<'a>
impl<'a> StructuralPartialEq for ReaderStrError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReaderStrError<'a>
impl<'a> RefUnwindSafe for ReaderStrError<'a>
impl<'a> Send for ReaderStrError<'a>
impl<'a> Sync for ReaderStrError<'a>
impl<'a> Unpin for ReaderStrError<'a>
impl<'a> UnsafeUnpin for ReaderStrError<'a>
impl<'a> UnwindSafe for ReaderStrError<'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