Enum slr_lexer::ErrorKind [] [src]

pub enum ErrorKind {
    ParseFailure,
    InvalidRepr,
    UnknownField,
    Custom(i32),
}

An enum describing the kind of the error, to allow treating different errors differenly.

Variants

ParseFailure

A parse error has occured. This error is not recoverable.

InvalidRepr

An object could not be parsed from its ConfigElement representation. This error is recoverable, but the value the the object is in an unspecified state.

UnknownField

While parsing a struct from a table, an unknown field was found. This error is recoverable, and the struct is unaffected.

Custom(i32)

A custom error available to 3rd party implementors. The semantics are defined by the 3rd party.

Trait Implementations

impl PartialEq for ErrorKind
[src]

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

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

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

This method tests for !=.

impl Clone for ErrorKind
[src]

fn clone(&self) -> ErrorKind

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 Copy for ErrorKind
[src]

impl Debug for ErrorKind
[src]

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

Formats the value using the given formatter.