Struct peg_runtime::error::ParseError
source · pub struct ParseError<L> {
pub location: L,
pub expected: ExpectedSet,
}Expand description
An error from a parse failure
Fields§
§location: LThe furthest position the parser reached in the input
expected: ExpectedSetThe set of literals that failed to match at that position
Trait Implementations§
source§impl<L: Clone> Clone for ParseError<L>
impl<L: Clone> Clone for ParseError<L>
source§fn clone(&self) -> ParseError<L>
fn clone(&self) -> ParseError<L>
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<L: Debug> Debug for ParseError<L>
impl<L: Debug> Debug for ParseError<L>
source§impl<L: Display> Display for ParseError<L>
impl<L: Display> Display for ParseError<L>
source§impl<L: Display + Debug> Error for ParseError<L>
impl<L: Display + Debug> Error for ParseError<L>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl<L: PartialEq> PartialEq for ParseError<L>
impl<L: PartialEq> PartialEq for ParseError<L>
source§fn eq(&self, other: &ParseError<L>) -> bool
fn eq(&self, other: &ParseError<L>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<L: Eq> Eq for ParseError<L>
impl<L> StructuralPartialEq for ParseError<L>
Auto Trait Implementations§
impl<L> Freeze for ParseError<L>where
L: Freeze,
impl<L> RefUnwindSafe for ParseError<L>where
L: RefUnwindSafe,
impl<L> Send for ParseError<L>where
L: Send,
impl<L> Sync for ParseError<L>where
L: Sync,
impl<L> Unpin for ParseError<L>where
L: Unpin,
impl<L> UnwindSafe for ParseError<L>where
L: UnwindSafe,
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