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

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

Variants

Const(LiteralSpan<BytePos>)Ident(TypedIdent<Symbol>, Span<BytePos>)Call(&'a Expr<'a>, &'a [Expr<'a>])Data(TypedIdent<Symbol>, &'a [Expr<'a>]BytePos)Let(LetBinding<'a>, &'a Expr<'a>)Match(&'a Expr<'a>, &'a [Alternative<'a>])

Methods

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

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

Trait Implementations

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

type Ident = Symbol

fn env_type_of(
    &self,
    env: &dyn TypeEnv<Type = ArcType<Symbol>>
) -> ArcType<Self::Ident>
[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

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

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<Choices> CoproductSubsetter for Choices[src]

type Remainder = Choices

impl<Source> Sculptor for Source[src]

type Remainder = Source

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

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