[][src]Enum luaparse::LexerErrorKind

pub enum LexerErrorKind {
    ExpectedExponent,
    ExponentTooLarge,
    ExpectedDigit,
    UnescapedNewline,
    UnclosedString,
    UnknownEscape,
    UnexpectedEof,
    ExpectedHexDigit,
    Expected2HexDigits,
    DoesntFitIntoByte,
    ExpectedUpTo3Digits,
    InvalidUtf8Codepoint,
    Utf8CodepointTooLarge,
    UnclosedLongString,
    UnrecognizedCharacter,
    ExpectedChar(char),
}

A enum of error kinds returned by the lexer.

Variants

ExpectedExponent

Expected an exponent.

ExponentTooLarge

The exponent is too large.

ExpectedDigit

Expected a digit.

UnescapedNewline

An unescaped newline in the string literal.

UnclosedString

An unclosed string literal.

UnknownEscape

An unknown escape sequence.

UnexpectedEof

An unexpected end of file.

ExpectedHexDigit

Expected a hex digit.

Expected2HexDigits

Expected 2 hex digits.

DoesntFitIntoByte

Expected the number be less than 256.

ExpectedUpTo3Digits

Expected up to 3 decimal digits.

InvalidUtf8Codepoint

The UTF-8 codepoint is invalid.

Utf8CodepointTooLarge

The UTF-8 codepoint is too large.

UnclosedLongString

An unclosed long string.

UnrecognizedCharacter

An unrecognized character.

ExpectedChar(char)

Expected a certain character.

Trait Implementations

impl Clone for LexerErrorKind[src]

impl Copy for LexerErrorKind[src]

impl Debug for LexerErrorKind[src]

impl Display for LexerErrorKind[src]

impl Eq for LexerErrorKind[src]

impl Hash for LexerErrorKind[src]

impl PartialEq<LexerErrorKind> for LexerErrorKind[src]

impl StructuralEq for LexerErrorKind[src]

impl StructuralPartialEq for LexerErrorKind[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.