Struct boa::exec::Interpreter

source ·
pub struct Interpreter {
    pub scopes: Vec<Scope>,
    /* private fields */
}
Expand description

A Javascript intepreter

Fields

scopes: Vec<Scope>

The scopes

Implementations

Get the current scope

Trait Implementations

Make a new execution engine
Set a global variable called name with the value val
Resolve the global variable name
Create a new scope and return it
Destroy the current scope
Run an expression

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.