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 for ParseError<L>where
L: Clone,
impl<L> Clone for ParseError<L>where
L: Clone,
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 for ParseError<L>where
L: Debug,
impl<L> Debug for ParseError<L>where
L: Debug,
Source§impl<L> Display for ParseError<L>where
L: Display,
impl<L> Display for ParseError<L>where
L: Display,
Source§impl<L> Error for ParseError<L>
impl<L> 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)>
Returns the lower-level source of this error, if any. Read more
Source§impl<L> PartialEq for ParseError<L>where
L: PartialEq,
impl<L> PartialEq for ParseError<L>where
L: PartialEq,
impl<L> Eq for ParseError<L>where
L: Eq,
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