[][src]Enum jomini::ErrorKind

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

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

Implementations

impl ErrorKind[src]

pub fn offset(&self) -> Option<usize>[src]

The byte offset where the invalid syntax was encountered

Trait Implementations

impl Debug for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.