pub enum Context {
ParsingVector {
row: usize,
col: usize,
},
ParsingList {
row: usize,
col: usize,
},
ParsingMap {
row: usize,
col: usize,
},
ParsingSet {
row: usize,
col: usize,
},
ParsingString {
row: usize,
col: usize,
},
ParsingAtom {
row: usize,
col: usize,
},
}Expand description
An element of context about what the parser was doing when an error was detected.
Variants§
ParsingVector
The parser started parsing a vector at the given row and col.
ParsingList
The parser started parsing a list at the given row and col.
ParsingMap
The parser started parsing a map at the given row and col.
ParsingSet
The parser started parsing a set at the given row and col.
ParsingString
The parser started parsing a string at the given row and col.
ParsingAtom
The parser started parsing an “atom” at the given row and col.
An “atom” might be a symbol, keyword, number, true, false, or nil. At the point the parser records this information it does not know which.
Trait Implementations§
impl Copy for Context
impl Eq for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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