Enum edn_format::Context[][src]

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

Fields

row: usize
col: usize

The parser started parsing a vector at the given row and col.

ParsingList

Fields

row: usize
col: usize

The parser started parsing a list at the given row and col.

ParsingMap

Fields

row: usize
col: usize

The parser started parsing a map at the given row and col.

ParsingSet

Fields

row: usize
col: usize

The parser started parsing a set at the given row and col.

ParsingString

Fields

row: usize
col: usize

The parser started parsing a string at the given row and col.

ParsingAtom

Fields

row: usize
col: usize

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.