Struct boa::environment::declarative_environment_record::DeclarativeEnvironmentRecord [−][src]
pub struct DeclarativeEnvironmentRecord {
pub env_rec: GcCell<FxHashMap<Box<str>, DeclarativeEnvironmentRecordBinding>>,
pub outer_env: Option<Environment>,
}Expand description
A declarative Environment Record binds the set of identifiers defined by the declarations contained within its scope.
Fields
env_rec: GcCell<FxHashMap<Box<str>, DeclarativeEnvironmentRecordBinding>>outer_env: Option<Environment>Implementations
Trait Implementations
Return the this binding from the environment
Get the next environment up
Set the next environment up
Get the type of environment this is
Return the this binding from the environment or try to get it from outer environments
fn recursive_create_mutable_binding(
&self,
name: &str,
deletion: bool,
scope: VariableScope,
context: &mut Context
) -> JsResult<()>
fn recursive_create_mutable_binding(
&self,
name: &str,
deletion: bool,
scope: VariableScope,
context: &mut Context
) -> JsResult<()>
Create mutable binding while handling outer environments
fn recursive_create_immutable_binding(
&self,
name: &str,
deletion: bool,
scope: VariableScope,
context: &mut Context
) -> JsResult<()>
fn recursive_create_immutable_binding(
&self,
name: &str,
deletion: bool,
scope: VariableScope,
context: &mut Context
) -> JsResult<()>
Create immutable binding while handling outer environments
Set mutable binding while handling outer environments
Initialize binding while handling outer environments
Check if a binding exists in current or any outer environment
Performs the conversion.
Runs Finalize::finalize() on this object and all contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for DeclarativeEnvironmentRecord
impl !Send for DeclarativeEnvironmentRecord
impl !Sync for DeclarativeEnvironmentRecord
impl Unpin for DeclarativeEnvironmentRecord
impl !UnwindSafe for DeclarativeEnvironmentRecord
Blanket Implementations
Mutably borrows from an owned value. Read more