[−][src]Struct libslide::parser::errors::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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,