Struct edn_format::ParserErrorWithContext
source · [−]pub struct ParserErrorWithContext {
pub context: Vec<Context>,
pub row: usize,
pub col: usize,
pub error: ParserError,
}Fields
context: Vec<Context>Vector holding the context that the parser was working in.
Intended to be useful for giving hints to a user about how to fix their input.
row: usizeThe row where the error was detected. 1 indexed. 0 if no characters on the line have been read.
col: usizeThe col where the error was detected. 1 indexed. Starts at 1.
error: ParserErrorThe error that the parser ran into.
Trait Implementations
sourceimpl Debug for ParserErrorWithContext
impl Debug for ParserErrorWithContext
sourceimpl Display for ParserErrorWithContext
impl Display for ParserErrorWithContext
sourceimpl Error for ParserErrorWithContext
impl Error for ParserErrorWithContext
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<ParserErrorWithContext> for ParserErrorWithContext
impl PartialEq<ParserErrorWithContext> for ParserErrorWithContext
sourcefn eq(&self, other: &ParserErrorWithContext) -> bool
fn eq(&self, other: &ParserErrorWithContext) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ParserErrorWithContext) -> bool
fn ne(&self, other: &ParserErrorWithContext) -> bool
This method tests for !=.
impl StructuralPartialEq for ParserErrorWithContext
Auto Trait Implementations
impl RefUnwindSafe for ParserErrorWithContext
impl Send for ParserErrorWithContext
impl Sync for ParserErrorWithContext
impl Unpin for ParserErrorWithContext
impl UnwindSafe for ParserErrorWithContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more