pub struct ObjectEnvironmentRecord {
pub bindings: JsObject,
pub with_environment: bool,
pub outer_env: Option<Environment>,
}
Fields
bindings: JsObject
with_environment: bool
outer_env: Option<Environment>
Implementations
sourceimpl ObjectEnvironmentRecord
impl ObjectEnvironmentRecord
pub fn new(
object: JsObject,
environment: Option<Environment>
) -> ObjectEnvironmentRecord
Trait Implementations
sourceimpl Clone for ObjectEnvironmentRecord
impl Clone for ObjectEnvironmentRecord
sourcefn clone(&self) -> ObjectEnvironmentRecord
fn clone(&self) -> ObjectEnvironmentRecord
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ObjectEnvironmentRecord
impl Debug for ObjectEnvironmentRecord
sourceimpl Drop for ObjectEnvironmentRecord
impl Drop for ObjectEnvironmentRecord
sourceimpl EnvironmentRecordTrait for ObjectEnvironmentRecord
impl EnvironmentRecordTrait for ObjectEnvironmentRecord
sourcefn create_mutable_binding(
&self,
name: &str,
deletion: bool,
_allow_name_reuse: bool,
context: &mut Context
) -> JsResult<()>
fn create_mutable_binding(
&self,
name: &str,
deletion: bool,
_allow_name_reuse: bool,
context: &mut Context
) -> JsResult<()>
sourcefn create_immutable_binding(
&self,
_name: &str,
_strict: bool,
_context: &mut Context
) -> JsResult<()>
fn create_immutable_binding(
&self,
_name: &str,
_strict: bool,
_context: &mut Context
) -> JsResult<()>
sourcefn initialize_binding(
&self,
name: &str,
value: JsValue,
context: &mut Context
) -> JsResult<()>
fn initialize_binding(
&self,
name: &str,
value: JsValue,
context: &mut Context
) -> JsResult<()>
sourcefn set_mutable_binding(
&self,
name: &str,
value: JsValue,
strict: bool,
context: &mut Context
) -> JsResult<()>
fn set_mutable_binding(
&self,
name: &str,
value: JsValue,
strict: bool,
context: &mut Context
) -> JsResult<()>
sourcefn get_binding_value(
&self,
name: &str,
strict: bool,
context: &mut Context
) -> JsResult<JsValue>
fn get_binding_value(
&self,
name: &str,
strict: bool,
context: &mut Context
) -> JsResult<JsValue>
sourcefn has_this_binding(&self) -> bool
fn has_this_binding(&self) -> bool
sourcefn has_super_binding(&self) -> bool
fn has_super_binding(&self) -> bool
sourcefn with_base_object(&self) -> Option<JsObject>
fn with_base_object(&self) -> Option<JsObject>
sourcefn get_this_binding(&self, _context: &mut Context) -> JsResult<JsValue>
fn get_this_binding(&self, _context: &mut Context) -> JsResult<JsValue>
Return the
this
binding from the environmentsourcefn get_outer_environment_ref(&self) -> Option<&Environment>
fn get_outer_environment_ref(&self) -> Option<&Environment>
Get the next environment up
sourcefn set_outer_environment(&mut self, env: Environment)
fn set_outer_environment(&mut self, env: Environment)
Set the next environment up
sourcefn get_environment_type(&self) -> EnvironmentType
fn get_environment_type(&self) -> EnvironmentType
Get the type of environment this is
fn get_outer_environment(&self) -> Option<Environment>
sourcefn recursive_get_this_binding(&self, context: &mut Context) -> JsResult<JsValue>
fn recursive_get_this_binding(&self, context: &mut Context) -> JsResult<JsValue>
Return the
this
binding from the environment or try to get it from outer environmentssourcefn 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
sourcefn 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
sourcefn recursive_set_mutable_binding(
&self,
name: &str,
value: JsValue,
strict: bool,
context: &mut Context
) -> JsResult<()>
fn recursive_set_mutable_binding(
&self,
name: &str,
value: JsValue,
strict: bool,
context: &mut Context
) -> JsResult<()>
Set mutable binding while handling outer environments
sourcefn recursive_initialize_binding(
&self,
name: &str,
value: JsValue,
context: &mut Context
) -> JsResult<()>
fn recursive_initialize_binding(
&self,
name: &str,
value: JsValue,
context: &mut Context
) -> JsResult<()>
Initialize binding while handling outer environments
sourceimpl Finalize for ObjectEnvironmentRecord
impl Finalize for ObjectEnvironmentRecord
sourceimpl From<ObjectEnvironmentRecord> for Environment
impl From<ObjectEnvironmentRecord> for Environment
sourcefn from(env: ObjectEnvironmentRecord) -> Environment
fn from(env: ObjectEnvironmentRecord) -> Environment
Converts to this type from the input type.
sourceimpl Trace for ObjectEnvironmentRecord
impl Trace for ObjectEnvironmentRecord
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for ObjectEnvironmentRecord
impl !Send for ObjectEnvironmentRecord
impl !Sync for ObjectEnvironmentRecord
impl Unpin for ObjectEnvironmentRecord
impl !UnwindSafe for ObjectEnvironmentRecord
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more