pub struct ParserError { /* private fields */ }
Implementations§
Source§impl ParserError
impl ParserError
pub fn with_context_tag(self, context: ContextTag) -> Self
pub fn with_symbol(self, symbol: DebugSymbol) -> Self
pub fn with_symbol_from_ctx(self, ctx: &ErrorContext) -> Self
pub fn with_cause(self, error: impl Error + 'static) -> Self
pub fn with_error_context(self, context: ErrorContext) -> Self
pub fn kind(&self) -> &ErrorKind
pub fn context(&self) -> Option<&ContextTag>
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl Error for ParserError
impl Error for ParserError
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 From<&str> for ParserError
impl From<&str> for ParserError
Source§impl From<ErrorKind> for ParserError
impl From<ErrorKind> for ParserError
Source§impl From<LexerError> for ParserError
impl From<LexerError> for ParserError
Source§fn from(error: LexerError) -> Self
fn from(error: LexerError) -> Self
Converts to this type from the input type.
Source§impl SourceError for ParserError
impl SourceError for ParserError
fn debug_symbol(&self) -> Option<&DebugSymbol>
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