[−][src]Enum webidl::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, 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]
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, 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]
Performs copy-assignment from source
. Read more
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> 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 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
fn type_id(&self) -> TypeId where
Self: 'static,
1.34.0[src]
Self: 'static,
Gets the TypeId
of self
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> Display for ParseError<L, T, E> where
E: Display,
L: Display,
T: Display,
[src]
E: Display,
L: Display,
T: Display,
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]
impl<L, T, E> Debug for ParseError<L, T, E> where
E: Debug,
L: Debug,
T: Debug,
[src]
E: Debug,
L: Debug,
T: Debug,
Auto Trait Implementations
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,
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,