[−][src]Enum jexl_parser::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, T, E> Clone for ParseError<L, T, E> where
E: Clone,
L: Clone,
T: Clone,
[src]
E: Clone,
L: Clone,
T: Clone,
fn clone(&self) -> ParseError<L, T, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<L, T, E> Debug for ParseError<L, T, E> where
E: Debug,
L: Debug,
T: Debug,
[src]
E: Debug,
L: Debug,
T: Debug,
impl<L, T, E> Display for ParseError<L, T, E> where
E: Display,
L: Display,
T: Display,
[src]
E: Display,
L: Display,
T: Display,
impl<L, T, E> Eq for ParseError<L, T, E> where
E: Eq,
L: Eq,
T: Eq,
[src]
E: Eq,
L: Eq,
T: Eq,
impl<L, T, E> Error for ParseError<L, T, E> where
E: Debug + Display,
L: Debug + Display,
T: Debug + Display,
[src]
E: Debug + Display,
L: Debug + Display,
T: 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> Ord for ParseError<L, T, E> where
E: Ord,
L: Ord,
T: Ord,
[src]
E: Ord,
L: Ord,
T: Ord,
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, T, E> PartialEq<ParseError<L, T, E>> for ParseError<L, T, E> where
E: PartialEq<E>,
L: PartialEq<L>,
T: PartialEq<T>,
[src]
E: PartialEq<E>,
L: PartialEq<L>,
T: PartialEq<T>,
fn eq(&self, other: &ParseError<L, T, E>) -> bool
[src]
fn ne(&self, other: &ParseError<L, T, E>) -> bool
[src]
impl<L, T, E> PartialOrd<ParseError<L, T, E>> for ParseError<L, T, E> where
E: PartialOrd<E>,
L: PartialOrd<L>,
T: PartialOrd<T>,
[src]
E: PartialOrd<E>,
L: PartialOrd<L>,
T: PartialOrd<T>,
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]
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<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>,