pub enum Error<'a, 'f> {
    UnexpectedToken(&'a [Tok<'a, 'f>], &'static str),
    ReportedError,
}
Expand description

Parsing error

Variants

UnexpectedToken(&'a [Tok<'a, 'f>], &'static str)

Tuple Fields

0: &'a [Tok<'a, 'f>]

The list of remaining tokens. The first one was the unexpected one.

1: &'static str

The error message

An unexpected token was encountered

ReportedError

An internal error that was handled. You should normally never see this variant when using the public API, and you can ignore it safely.

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.