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

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

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.

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

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

Trait Implementations

impl Debug for ErrorKind
[src]

Formats the value using the given formatter.

impl Copy for ErrorKind
[src]

impl Clone for ErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ErrorKind
[src]

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

This method tests for !=.