[][src]Enum gluon_vm::core::Expr

pub enum Expr<'a> {
    Const(LiteralSpan<BytePos>),
    Ident(TypedIdent<Symbol>, Span<BytePos>),
    Call(CExpr<'a>, &'a [Expr<'a>]),
    Data(TypedIdent<Symbol>, &'a [Expr<'a>]BytePos),
    Let(&'a LetBinding<'a>, CExpr<'a>),
    Match(CExpr<'a>, &'a [Alternative<'a>]),
    Cast(CExpr<'a>, ArcType),
}

Variants

Const(LiteralSpan<BytePos>)
Call(CExpr<'a>, &'a [Expr<'a>])
Let(&'a LetBinding<'a>, CExpr<'a>)
Match(CExpr<'a>, &'a [Alternative<'a>])
Cast(CExpr<'a>, ArcType)

Implementations

impl<'a> Expr<'a>[src]

pub fn span(&self) -> Span<BytePos>[src]

Trait Implementations

impl<'a> ArenaAllocatable<'a> for Expr<'a>[src]

impl<'a> Clone for Expr<'a>[src]

impl<'a> Debug for Expr<'a>[src]

impl Default for &'static Expr<'static>[src]

impl<'a> Default for Expr<'a>[src]

impl<'a> Display for Expr<'a>[src]

impl<'a> PartialEq<Expr<'a>> for Expr<'a>[src]

impl<'a, 'b, P> Produce<'a, 'b, P, Expr<'b>> for Expr<'a> where
    P: ExprProducer<'a, 'b>, 
[src]

impl<'a, 'b, P> Produce<'a, 'b, P, Expr<'b>> for CExpr<'a> where
    P: ExprProducer<'a, 'b>, 
[src]

impl<'a> StructuralPartialEq for Expr<'a>[src]

impl<'a> Typed for Expr<'a>[src]

type Ident = Symbol

Auto Trait Implementations

impl<'a> RefUnwindSafe for Expr<'a>

impl<'a> Send for Expr<'a>

impl<'a> Sync for Expr<'a>

impl<'a> Unpin for Expr<'a>

impl<'a> UnwindSafe for Expr<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'_, T> Captures<'_> for T[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<D, T> FromPtr<D> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

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.