Enum edn_format::Context
source · [−]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 StructuralEq for Context
impl StructuralPartialEq for Context
Auto Trait Implementations
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more