Enum oftlisp_anf::Expr
[−]
[src]
pub enum Expr { Call(Gc<Prim>, Vec<Gc<Prim>>), If(Gc<Prim>, Gc<Expr>, Gc<Expr>), Let(Option<Symbol>, Gc<Expr>, Gc<Expr>), Prim(Gc<Prim>), }
A complex expression, i.e. one that can fail to normalize.
Variants
Call(Gc<Prim>, Vec<Gc<Prim>>)
A function call.
If(Gc<Prim>, Gc<Expr>, Gc<Expr>)
A conditional expression.
Let(Option<Symbol>, Gc<Expr>, Gc<Expr>)
A let binding.
Prim(Gc<Prim>)
A primitive expression.
Methods
impl Expr
[src]
Trait Implementations
impl Clone for Expr
[src]
fn clone(&self) -> Expr
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Expr
[src]
impl Finalize for Expr
[src]
impl PartialEq for Expr
[src]
fn eq(&self, __arg_0: &Expr) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Expr) -> bool
[src]
This method tests for !=
.
impl Trace for Expr
[src]
unsafe fn trace(&self)
[src]
Marks all contained Gc
s.
unsafe fn root(&self)
[src]
Increments the root-count of all contained Gc
s.
unsafe fn unroot(&self)
[src]
Decrements the root-count of all contained Gc
s.
fn finalize_glue(&self)
[src]
Runs Finalize::finalize() on this object and all contained subobjects Read more