pub struct ParserError {
pub details: ParserErrorDetails,
pub coords: Option<Coords>,
}
Expand description
The general error structure
Fields§
§details: ParserErrorDetails
The global error code for the error
coords: Option<Coords>
Parser Coords
Trait Implementations§
Source§impl Clone for ParserError
impl Clone for ParserError
Source§fn clone(&self) -> ParserError
fn clone(&self) -> ParserError
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 Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl From<LexerError> for ParserError
Allows conversion from errors arising within the lexical analysis/scanning stage of parsing
impl From<LexerError> for ParserError
Allows conversion from errors arising within the lexical analysis/scanning stage of parsing
Source§fn from(value: LexerError) -> Self
fn from(value: LexerError) -> Self
Converts to this type from the input type.
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