[−][src]Enum lalrpop_util::ParseError
Variants
InvalidToken
Generated by the parser when it encounters a token (or EOF) it did not expect.
Fields of InvalidToken
UnrecognizedEOF
Generated by the parser when it encounters an EOF it did not expect.
Fields of UnrecognizedEOF
UnrecognizedToken
Generated by the parser when it encounters a token it did not expect.
Fields of UnrecognizedToken
ExtraToken
Generated by the parser when it encounters additional, unexpected tokens.
Fields of ExtraToken
User
Custom error type.
Fields of User
Methods
impl<L, T, E> ParseError<L, T, E>
[src]
pub fn map_location<F, LL>(self, op: F) -> ParseError<LL, T, E> where
F: Fn(L) -> LL,
[src]
F: Fn(L) -> LL,
pub fn map_token<F, TT>(self, op: F) -> ParseError<L, TT, E> where
F: Fn(T) -> TT,
[src]
F: Fn(T) -> TT,
pub fn map_error<F, EE>(self, op: F) -> ParseError<L, T, EE> where
F: Fn(E) -> EE,
[src]
F: Fn(E) -> EE,
Trait Implementations
impl<L: Ord, T: Ord, E: Ord> Ord for ParseError<L, T, E>
[src]
fn cmp(&self, other: &ParseError<L, T, E>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
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: 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: 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]
Performs copy-assignment from source
. Read more
impl<L: Eq, T: Eq, E: Eq> Eq 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: Debug, T: Debug, E: Debug> Debug 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 cause(&self) -> Option<&dyn Error>
1.0.0[src]
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
The lower-level source of this error, if any. Read more
Auto Trait Implementations
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> 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> UnwindSafe for ParseError<L, T, E> where
E: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
E: UnwindSafe,
L: UnwindSafe,
T: UnwindSafe,
impl<L, T, E> RefUnwindSafe for ParseError<L, T, E> where
E: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
E: RefUnwindSafe,
L: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,