pub enum ParseError<L, E> {
InvalidToken {
location: L,
message: String,
},
User {
location: L,
error: E,
},
}
Variants
InvalidToken
User
Trait Implementations
sourceimpl<L: Clone, E: Clone> Clone for ParseError<L, E>
impl<L: Clone, E: Clone> Clone for ParseError<L, E>
sourcefn clone(&self) -> ParseError<L, E>
fn clone(&self) -> ParseError<L, E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<L: Debug, E: Debug> Debug for ParseError<L, E>
impl<L: Debug, E: Debug> Debug for ParseError<L, E>
sourceimpl<L, E> Display for ParseError<L, E> where
L: Display,
E: Display,
impl<L, E> Display for ParseError<L, E> where
L: Display,
E: Display,
sourceimpl<L: Ord, E: Ord> Ord for ParseError<L, E>
impl<L: Ord, E: Ord> Ord for ParseError<L, E>
sourceimpl<L: PartialEq, E: PartialEq> PartialEq<ParseError<L, E>> for ParseError<L, E>
impl<L: PartialEq, E: PartialEq> PartialEq<ParseError<L, E>> for ParseError<L, E>
sourcefn eq(&self, other: &ParseError<L, E>) -> bool
fn eq(&self, other: &ParseError<L, E>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParseError<L, E>) -> bool
fn ne(&self, other: &ParseError<L, E>) -> bool
This method tests for !=
.
sourceimpl<L: PartialOrd, E: PartialOrd> PartialOrd<ParseError<L, E>> for ParseError<L, E>
impl<L: PartialOrd, E: PartialOrd> PartialOrd<ParseError<L, E>> for ParseError<L, E>
sourcefn partial_cmp(&self, other: &ParseError<L, E>) -> Option<Ordering>
fn partial_cmp(&self, other: &ParseError<L, E>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<L: Eq, E: Eq> Eq for ParseError<L, E>
impl<L, E> StructuralEq for ParseError<L, E>
impl<L, E> StructuralPartialEq for ParseError<L, E>
Auto Trait Implementations
impl<L, E> RefUnwindSafe for ParseError<L, E> where
E: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, E> Send for ParseError<L, E> where
E: Send,
L: Send,
impl<L, E> Sync for ParseError<L, E> where
E: Sync,
L: Sync,
impl<L, E> Unpin for ParseError<L, E> where
E: Unpin,
L: Unpin,
impl<L, E> UnwindSafe for ParseError<L, E> where
E: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more