[][src]Enum rustpython_parser::error::ParseErrorType

pub enum ParseErrorType {
    EOF,
    ExtraToken(Tok),
    InvalidToken,
    UnrecognizedToken(TokOption<String>),
    Lexical(LexicalErrorType),
}

Variants

EOF

Parser encountered an unexpected end of input

ExtraToken(Tok)

Parser encountered an extra token

InvalidToken

Parser encountered an invalid token

UnrecognizedToken(TokOption<String>)

Parser encountered an unexpected token

Lexical(LexicalErrorType)

Maps to User type from lalrpop-util

Trait Implementations

impl Debug for ParseErrorType[src]

impl Display for ParseErrorType[src]

impl PartialEq<ParseErrorType> for ParseErrorType[src]

impl StructuralPartialEq for ParseErrorType[src]

Auto Trait Implementations

impl RefUnwindSafe for ParseErrorType

impl Send for ParseErrorType

impl Sync for ParseErrorType

impl Unpin for ParseErrorType

impl UnwindSafe for ParseErrorType

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> 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.