Enum leo_parser::errors::syntax::SyntaxError[][src]

pub enum SyntaxError {
    Error(FormattedError),
    TokenError(TokenError),
    DeprecatedError(DeprecatedError),
}

Variants

TokenError(TokenError)
DeprecatedError(DeprecatedError)

Implementations

impl SyntaxError[src]

pub fn unexpected_eof(span: &Span) -> Self[src]

pub fn unexpected_whitespace(left: &str, right: &str, span: &Span) -> Self[src]

pub fn unexpected(got: &Token, expected: &[Token], span: &Span) -> Self[src]

pub fn unexpected_ident(got: &str, expected: &[&str], span: &Span) -> Self[src]

pub fn unexpected_str(got: &Token, expected: &str, span: &Span) -> Self[src]

pub fn spread_in_array_init(span: &Span) -> Self[src]

pub fn invalid_assignment_target(span: &Span) -> Self[src]

pub fn invalid_package_name(span: &Span) -> Self[src]

pub fn illegal_self_const(span: &Span) -> Self[src]

Trait Implementations

impl Debug for SyntaxError[src]

impl Display for SyntaxError[src]

impl Error for SyntaxError[src]

impl From<DeprecatedError> for SyntaxError[src]

impl From<FormattedError> for SyntaxError[src]

impl From<TokenError> for SyntaxError[src]

impl LeoError for SyntaxError[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> Instrument 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.