pub enum AconError {
ExcessiveClosingDelimiter(Option<usize>),
InternalStringTop(Option<usize>),
MissingStackTop(Option<usize>),
MultipleTopNodes,
TopNodeIsArray,
OverwritingKey(Option<usize>),
WrongClosingDelimiterExpectedArray(Option<usize>),
WrongClosingDelimiterExpectedTable(Option<usize>),
}
Expand description
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§
source§impl PartialEq<AconError> for AconError
impl PartialEq<AconError> for AconError
impl StructuralPartialEq for AconError
Auto Trait Implementations§
impl RefUnwindSafe for AconError
impl Send for AconError
impl Sync for AconError
impl Unpin for AconError
impl UnwindSafe for AconError
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