[][src]Enum libslide::grammar::expression_pattern::ExprPat

pub enum ExprPat {
    Const(f64),
    VarPat(String),
    ConstPat(String),
    AnyPat(String),
    BinaryExpr(BinaryExpr<RcExprPat>),
    UnaryExpr(UnaryExpr<RcExprPat>),
    Parend(RcExprPat),
    Bracketed(RcExprPat),
}

A slide expression pattern.

Variants

Const(f64)

A constant

VarPat(String)

Pattern matching a variable

ConstPat(String)

Pattern matching a constant

AnyPat(String)

Pattern matching any expression

BinaryExpr(BinaryExpr<RcExprPat>)

A binary expression

UnaryExpr(UnaryExpr<RcExprPat>)

A unary expression

Parend(RcExprPat)

A paranthesized expression

Bracketed(RcExprPat)

A bracketed expression

Trait Implementations

impl AsRef<ExprPat> for RcExprPat[src]

impl Clone for ExprPat[src]

impl Debug for ExprPat[src]

impl Display for ExprPat[src]

impl Emit for ExprPat[src]

impl Eq for ExprPat[src]

impl Grammar for ExprPat[src]

impl Hash for ExprPat[src]

impl Ord for ExprPat[src]

impl PartialEq<ExprPat> for ExprPat[src]

impl PartialOrd<ExprPat> for ExprPat[src]

Auto Trait Implementations

impl RefUnwindSafe for ExprPat

impl Send for ExprPat

impl Sync for ExprPat

impl Unpin for ExprPat

impl UnwindSafe for ExprPat

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.