Enum oftlisp_anf::Prim
[−]
[src]
pub enum Prim { Fn(Option<Symbol>, Gc<Args<Context>>, Gc<Expr>), Lit(Gc<Value<Context>>), Var(Symbol), Vec(Vec<Gc<Prim>>), }
A primitive expression, i.e. one that immediately normalizes.
Variants
Fn(Option<Symbol>, Gc<Args<Context>>, Gc<Expr>)
A function literal, i.e. a lambda.
Lit(Gc<Value<Context>>)
A literal value.
Var(Symbol)
A variable.
Vec(Vec<Gc<Prim>>)
A literal vector.
Methods
impl Prim
[src]
Trait Implementations
impl Clone for Prim
[src]
fn clone(&self) -> Prim
[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 Prim
[src]
impl Finalize for Prim
[src]
impl PartialEq for Prim
[src]
fn eq(&self, __arg_0: &Prim) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Prim) -> bool
[src]
This method tests for !=
.
impl Trace for Prim
[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