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

pub(crate) struct IllegalPattern;

Patterns are illegal in a "regular" slide program; i.e. a program including a standard expression.

In most cases, this error is fired because you intended to run an expression pattern through slide, or wrote a variable in the form of a pattern.

Because patterns are abstractions over expressions, they cannot be evaluated in the way an expression can without first being filled in by an expression. As an analogy, saying you have "eaten groceries" does not provide concrete information about what you have eaten without first defining what the groceries are.

Trait Implementations

impl DiagnosticRecord for IllegalPattern[src]

Auto Trait Implementations

impl RefUnwindSafe for IllegalPattern

impl Send for IllegalPattern

impl Sync for IllegalPattern

impl Unpin for IllegalPattern

impl UnwindSafe for IllegalPattern

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.