[−][src]Enum lalrpop_util::ParseError
Variants
Generated by the parser when it encounters a token (or EOF) it did not expect.
Generated by the parser when it encounters an EOF it did not expect.
Fields of UnrecognizedEOF
Generated by the parser when it encounters a token it did not expect.
Fields of UnrecognizedToken
Generated by the parser when it encounters additional, unexpected tokens.
Custom error type.
Implementations
impl<L, T, E> ParseError<L, T, E>
[src]
pub fn map_location<LL>(self, op: impl FnMut(L) -> LL) -> ParseError<LL, T, E>
[src]
pub fn map_token<TT>(self, op: impl FnOnce(T) -> TT) -> ParseError<L, TT, E>
[src]
pub fn map_error<EE>(self, op: impl FnOnce(E) -> EE) -> ParseError<L, T, EE>
[src]
Trait Implementations
impl<L: Clone, T: Clone, E: Clone> Clone for ParseError<L, T, E>
[src]
fn clone(&self) -> ParseError<L, T, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<L: Debug, T: Debug, E: Debug> Debug for ParseError<L, T, E>
[src]
impl<L, T, E> Display for ParseError<L, T, E> where
L: Display,
T: Display,
E: Display,
[src]
L: Display,
T: Display,
E: Display,
impl<L: Eq, T: Eq, E: Eq> Eq for ParseError<L, T, E>
[src]
impl<L, T, E> Error for ParseError<L, T, E> where
L: Debug + Display,
T: Debug + Display,
E: Debug + Display,
[src]
L: Debug + Display,
T: Debug + Display,
E: Debug + Display,
fn description(&self) -> &str
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<L, T, E> From<E> for ParseError<L, T, E>
[src]
impl<L: Ord, T: Ord, E: Ord> Ord for ParseError<L, T, E>
[src]
fn cmp(&self, other: &ParseError<L, T, E>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<L: PartialEq, T: PartialEq, E: PartialEq> PartialEq<ParseError<L, T, E>> for ParseError<L, T, E>
[src]
fn eq(&self, other: &ParseError<L, T, E>) -> bool
[src]
fn ne(&self, other: &ParseError<L, T, E>) -> bool
[src]
impl<L: PartialOrd, T: PartialOrd, E: PartialOrd> PartialOrd<ParseError<L, T, E>> for ParseError<L, T, E>
[src]
fn partial_cmp(&self, other: &ParseError<L, T, E>) -> Option<Ordering>
[src]
fn lt(&self, other: &ParseError<L, T, E>) -> bool
[src]
fn le(&self, other: &ParseError<L, T, E>) -> bool
[src]
fn gt(&self, other: &ParseError<L, T, E>) -> bool
[src]
fn ge(&self, other: &ParseError<L, T, E>) -> bool
[src]
impl<L, T, E> StructuralEq for ParseError<L, T, E>
[src]
impl<L, T, E> StructuralPartialEq for ParseError<L, T, E>
[src]
Auto Trait Implementations
impl<L, T, E> RefUnwindSafe for ParseError<L, T, E> where
E: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
E: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<L, T, E> Send for ParseError<L, T, E> where
E: Send,
L: Send,
T: Send,
E: Send,
L: Send,
T: Send,
impl<L, T, E> Sync for ParseError<L, T, E> where
E: Sync,
L: Sync,
T: Sync,
E: Sync,
L: Sync,
T: Sync,
impl<L, T, E> Unpin for ParseError<L, T, E> where
E: Unpin,
L: Unpin,
T: Unpin,
E: Unpin,
L: Unpin,
T: Unpin,
impl<L, T, E> UnwindSafe for ParseError<L, T, E> where
E: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
E: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,