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>
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