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

A function literal, i.e. a lambda.

A literal value.

A variable.

A literal vector.

Methods

impl Prim
[src]

[src]

Returns the free variables of the expression.

Trait Implementations

impl Clone for Prim
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Prim
[src]

[src]

Formats the value using the given formatter.

impl Finalize for Prim
[src]

[src]

impl PartialEq for Prim
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Trace for Prim
[src]

[src]

Marks all contained Gcs.

[src]

Increments the root-count of all contained Gcs.

[src]

Decrements the root-count of all contained Gcs.

[src]

Runs Finalize::finalize() on this object and all contained subobjects Read more

impl Drop for Prim
[src]

[src]

Executes the destructor for this type. Read more

impl Display for Prim
[src]

[src]

Formats the value using the given formatter. Read more