pub enum ParseErrorKind<P, T, Idx> {
EndOfInput {
expected: &'static str,
},
UnexpectedToken {
expected: &'static str,
},
MismatchedDelimiter {
opening: Span<Idx>,
},
UnmatchedRightDelimiter,
UnmatchedLeftDelimiter,
Parser(P),
Tokenizer(T),
}
Variants§
EndOfInput
UnexpectedToken
MismatchedDelimiter
UnmatchedRightDelimiter
UnmatchedLeftDelimiter
Parser(P)
Tokenizer(T)
Trait Implementations§
Source§impl<P: Clone, T: Clone, Idx: Clone> Clone for ParseErrorKind<P, T, Idx>
impl<P: Clone, T: Clone, Idx: Clone> Clone for ParseErrorKind<P, T, Idx>
Source§fn clone(&self) -> ParseErrorKind<P, T, Idx>
fn clone(&self) -> ParseErrorKind<P, T, Idx>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<P, T, Idx> Display for ParseErrorKind<P, T, Idx>
impl<P, T, Idx> Display for ParseErrorKind<P, T, Idx>
impl<P: Copy, T: Copy, Idx: Copy> Copy for ParseErrorKind<P, T, Idx>
impl<P: Eq, T: Eq, Idx: Eq> Eq for ParseErrorKind<P, T, Idx>
impl<P, T, Idx> StructuralPartialEq for ParseErrorKind<P, T, Idx>
Auto Trait Implementations§
impl<P, T, Idx> Freeze for ParseErrorKind<P, T, Idx>
impl<P, T, Idx> RefUnwindSafe for ParseErrorKind<P, T, Idx>
impl<P, T, Idx> Send for ParseErrorKind<P, T, Idx>
impl<P, T, Idx> Sync for ParseErrorKind<P, T, Idx>
impl<P, T, Idx> Unpin for ParseErrorKind<P, T, Idx>
impl<P, T, Idx> UnwindSafe for ParseErrorKind<P, T, Idx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more