pub enum ReadErrorKind {
Char(String, AcceptSet),
EOF(AcceptSet),
Token(String, AcceptSet),
}
Expand description
The kind of the error.
TODO: There should probably be a separate lexer AcceptSet.
Variants§
Char(String, AcceptSet)
A character was encountered that was not expected. The first value is the character, the second is a representation of the expected value.
EOF(AcceptSet)
An unexpected EOF was encountered.
Token(String, AcceptSet)
A token was encountered that was not expected. The first value is the token, the second is a representation of the expected value.
Trait Implementations§
Source§impl Clone for ReadErrorKind
impl Clone for ReadErrorKind
Source§fn clone(&self) -> ReadErrorKind
fn clone(&self) -> ReadErrorKind
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 Debug for ReadErrorKind
impl Debug for ReadErrorKind
Source§impl Display for ReadErrorKind
impl Display for ReadErrorKind
Source§impl Drop for ReadErrorKind
impl Drop for ReadErrorKind
Source§impl Hash for ReadErrorKind
impl Hash for ReadErrorKind
Source§impl PartialEq for ReadErrorKind
impl PartialEq for ReadErrorKind
Source§impl Trace for ReadErrorKind
impl Trace for ReadErrorKind
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl Eq for ReadErrorKind
impl StructuralPartialEq for ReadErrorKind
Auto Trait Implementations§
impl Freeze for ReadErrorKind
impl RefUnwindSafe for ReadErrorKind
impl Send for ReadErrorKind
impl Sync for ReadErrorKind
impl Unpin for ReadErrorKind
impl UnwindSafe for ReadErrorKind
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