[][src]Struct libslide::parser::errors::ExtraTokens

pub(crate) struct ExtraTokens;

This error fires on tokens that are not connected to the rest of a primary statement in a slide program.

For example, in the program

1 + 2 3 + 4
      ^^^^^- offending tokens

3 + 4 are not connected to the primary expression statement 1 + 2, and slide does not know how this is intended to be evaluated.

In the future, statement that are separated by a newline will not emit this error. The following are examples of programs that currently emit this error, but in the future should not:

a = 1
b = 2 - in the future, parsed as two assignment statements
1 + 2
3 + 4 - in the future, parsed as two expression statements

Trait Implementations

impl DiagnosticRecord for ExtraTokens[src]

Auto Trait Implementations

impl RefUnwindSafe for ExtraTokens

impl Send for ExtraTokens

impl Sync for ExtraTokens

impl Unpin for ExtraTokens

impl UnwindSafe for ExtraTokens

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