pub struct ParserError {
pub msg: String,
pub line_num: Option<usize>,
}
Expand description
A struct representing the output of a parsing error.
Fields§
§msg: String
A message describing the parsing error.
line_num: Option<usize>
The line number the error occured on. This will always be the Some
variant unless there
was an issue with the file as a whole, in which case the None
variant will be returned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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