[][src]Enum rual_core::expressions::Expr

pub enum Expr {
    Declaration {
        name: (usize, usize),
        val: Box<Expr>,
    },
    FunctionDeclaration {
        name: (usize, usize),
        params: Vec<(usize, usize)>,
        body: Box<Expr>,
    },
    FunctionCall {
        name: (usize, usize),
        args: Vec<Expr>,
    },
    Multiple(Vec<Expr>),
    Range {
        from: Box<Expr>,
        to: Box<Expr>,
    },
    IdentLookup((usize, usize)),
    Rpn(Vec<Expr>),
    Value(Value),
    Op(Punct),
}

Variants

Declaration

Fields of Declaration

name: (usize, usize)val: Box<Expr>
FunctionDeclaration

Fields of FunctionDeclaration

name: (usize, usize)params: Vec<(usize, usize)>body: Box<Expr>
FunctionCall

Fields of FunctionCall

name: (usize, usize)args: Vec<Expr>
Multiple(Vec<Expr>)
Range

Fields of Range

from: Box<Expr>to: Box<Expr>
IdentLookup((usize, usize))
Rpn(Vec<Expr>)
Value(Value)
Op(Punct)

Trait Implementations

impl Clone for Expr[src]

impl Debug for Expr[src]

impl PartialEq<Expr> for Expr[src]

impl StructuralPartialEq for Expr[src]

Auto Trait Implementations

impl RefUnwindSafe for Expr

impl Send for Expr

impl Sync for Expr

impl Unpin for Expr

impl UnwindSafe for Expr

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