pub struct ParseError {
pub message: String,
pub line: usize,
pub column: usize,
}Expand description
The primary error type for all parsing operations.
This struct contains a human-readable error message and the location (line and column) where the error occurred.
Fields§
§message: StringA description of what went wrong.
line: usizeThe line number (1-indexed) where the error was detected.
column: usizeThe column number (1-indexed) where the error was detected.
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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