Enum oftlisp::reader::ReadErrorKind
[−]
[src]
pub enum ReadErrorKind { Char(String, AcceptSet), EOF(AcceptSet), Token(String, AcceptSet), }
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
impl Clone for ReadErrorKind
[src]
fn clone(&self) -> ReadErrorKind
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ReadErrorKind
[src]
impl Eq for ReadErrorKind
[src]
impl Finalize for ReadErrorKind
[src]
impl Hash for ReadErrorKind
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ReadErrorKind
[src]
fn eq(&self, __arg_0: &ReadErrorKind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ReadErrorKind) -> bool
[src]
This method tests for !=
.
impl Trace for ReadErrorKind
[src]
unsafe fn trace(&self)
[src]
Marks all contained Gc
s.
unsafe fn root(&self)
[src]
Increments the root-count of all contained Gc
s.
unsafe fn unroot(&self)
[src]
Decrements the root-count of all contained Gc
s.
fn finalize_glue(&self)
[src]
Runs Finalize::finalize() on this object and all contained subobjects Read more