Struct ketos::function::Lambda [] [src]

pub struct Lambda {
    pub code: Rc<Code>,
    pub scope: WeakScope,
    pub values: Option<Rc<Box<[Value]>>>,
}

Represents a function that evaluates an expression.

Fields

Bytecode implementation

Scope in which the lambda was created. A weak reference is used to prevent cycles.

Enclosed values

Methods

impl Lambda
[src]

Creates a new Lambda.

Creates a new Lambda enclosing a set of values.

Trait Implementations

impl Clone for Lambda
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Lambda
[src]

Formats the value using the given formatter.

impl PartialEq for Lambda
[src]

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

This method tests for !=.

impl<'a> FromValueRef<'a> for &'a Lambda
[src]

Returns the borrowed value

impl FromValue for Lambda
[src]

Consumes the Value and returns a Rust value