Enum jomini::ErrorKind[][src]

pub enum ErrorKind {
    Eof,
    StackEmpty {
        offset: usize,
    },
    InvalidEmptyObject {
        offset: usize,
    },
    InvalidSyntax {
        msg: String,
        offset: usize,
    },
    Deserialize(DeserializeError),
    Io(Error),
}
Expand description

Specific type of error

Variants

Eof

Unexpected end of input

StackEmpty

Too many close delimiters were encountered

Fields of StackEmpty

offset: usize

The byte offset where the stack became empty

InvalidEmptyObject

Expected a close delimiter after encountering an empty opener

Fields of InvalidEmptyObject

offset: usize

The byte offset where the invalid empty object was encountered

InvalidSyntax

Invalid syntax encountered

Fields of InvalidSyntax

msg: String

An error message describing the invalid syntax

offset: usize

The byte offset where the invalid syntax was encountered

Deserialize(DeserializeError)

An error occurred when deserializing the data

Tuple Fields of Deserialize

0: DeserializeError
Io(Error)

An error occurred when performing IO.

Tuple Fields of Io

0: Error

Implementations

The byte offset where the invalid syntax was encountered

Trait Implementations

Formats the value using the given formatter. Read more

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 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.