pub enum Error<E, F> {
    Stream(E),
    Unexpected(Option<char>),
    InvalidUnicodeCodePoint(u32),
    MissingLowSurrogate(Loc<u16, F>),
    InvalidLowSurrogate(Loc<u16, F>, u32),
}
Expand description

Parse error.

Variants

Stream(E)

Stream error.

Unexpected(Option<char>)

Unexpected character or end of stream.

InvalidUnicodeCodePoint(u32)

Invalid unicode codepoint.

MissingLowSurrogate(Loc<u16, F>)

Missing low surrogate in a string.

InvalidLowSurrogate(Loc<u16, F>, u32)

Invalid low surrogate in a string.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Wraps self inside a Loc<Self, F> using the given location. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.