Struct peg_runtime::error::ParseError
source · pub struct ParseError<L> {
pub location: L,
pub expected: ExpectedSet,
}
Expand description
A parse failure.
Fields§
§location: L
The furthest position the parser reached in the input before failing.
expected: ExpectedSet
The 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: 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