Enum acon::AconError [] [src]

pub enum AconError {
    ExcessiveClosingDelimiter(Option<usize>),
    InternalStringTop(Option<usize>),
    MissingStackTop(Option<usize>),
    MultipleTopNodes,
    TopNodeIsArray,
    OverwritingKey(Option<usize>),
    WrongClosingDelimiterExpectedArray(Option<usize>),
    WrongClosingDelimiterExpectedTable(Option<usize>),
}

Errors that come about during parsing

Variants

ExcessiveClosingDelimiter(Option<usize>)

Indicates that there are too many closing delimiters compared to opening delimiters

InternalStringTop(Option<usize>)

Acon::String is the top of the stack. This indicates an interal error

MissingStackTop(Option<usize>)

The stack top is missing, indicating that something popped the top

MultipleTopNodes

There is more than one top node after parsing the input. Unterminated tables.

TopNodeIsArray

If the top node of the stack is an array, this indicates that there's an unterminated array

OverwritingKey(Option<usize>)

The key at this line is already present in the parent table

WrongClosingDelimiterExpectedArray(Option<usize>)

Got a } but expected a ]

WrongClosingDelimiterExpectedTable(Option<usize>)

Got a ] but expected a }

Trait Implementations

impl Debug for AconError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for AconError
[src]

fn clone(&self) -> AconError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl PartialEq for AconError
[src]

fn eq(&self, __arg_0: &AconError) -> bool

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

fn ne(&self, __arg_0: &AconError) -> bool

This method tests for !=.