pub struct Heap {
    pub loc: Option<Box<Location>>,
    /* private fields */
}
Expand description

Runtime heap

Fields

loc: Option<Box<Location>>

Implementations

Deserializes JSON into objects on the heap

Find out what this currently is.

Lookup a property chain starting from the current scope, e.g.

assert_eq!(
    heap.lookup_path(&["Array", "prototype"]).unwrap(),
    Interpreted::from(Heap::ARRAY_PROTO)
);

Find the location of propname on the prototype chain of objref. Return None or Some(Interpreted::Member{..}) pointing to the found own property.

A shortcut for interpretable.evaluate(&mut heap).

Given a func_ref to a closure or a native call and a set of arguments, executes the function. this_ref is bound as this.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.