[−][src]Struct boa::environment::function_environment_record::FunctionEnvironmentRecord
Fields
env_rec: FxHashMap<String, DeclarativeEnvironmentRecordBinding>
this_value: Value
This is the this value used for this invocation of the function.
this_binding_status: BindingStatus
If the value is "lexical", this is an ArrowFunction and does not have a local this value.
function: GcObject
The function object whose invocation caused this Environment Record to be created.
home_object: Value
If the associated function has super property accesses and is not an ArrowFunction, [[HomeObject]] is the object that the function is bound to as a method. The default value for [[HomeObject]] is undefined.
new_target: Value
If this Environment Record was created by the [[Construct]] internal method, [[NewTarget]] is the value of the [[Construct]] newTarget parameter. Otherwise, its value is undefined.
outer_env: Option<Environment>
Reference to the outer environment to help with the scope chain Option type is needed as some environments can be created before we know what the outer env is
Implementations
impl FunctionEnvironmentRecord
[src]
pub fn bind_this_value(&mut self, value: Value)
[src]
Trait Implementations
impl Clone for FunctionEnvironmentRecord
[src]
fn clone(&self) -> FunctionEnvironmentRecord
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FunctionEnvironmentRecord
[src]
impl Drop for FunctionEnvironmentRecord
[src]
impl EnvironmentRecordTrait for FunctionEnvironmentRecord
[src]
fn has_binding(&self, name: &str) -> bool
[src]
fn create_mutable_binding(&mut self, name: String, deletion: bool)
[src]
fn get_this_binding(&self) -> Value
[src]
fn create_immutable_binding(&mut self, name: String, strict: bool) -> bool
[src]
fn initialize_binding(&mut self, name: &str, value: Value)
[src]
fn set_mutable_binding(&mut self, name: &str, value: Value, strict: bool)
[src]
fn get_binding_value(&self, name: &str, _strict: bool) -> Value
[src]
fn delete_binding(&mut self, name: &str) -> bool
[src]
fn has_super_binding(&self) -> bool
[src]
fn has_this_binding(&self) -> bool
[src]
fn with_base_object(&self) -> Value
[src]
fn get_outer_environment(&self) -> Option<Environment>
[src]
fn set_outer_environment(&mut self, env: Environment)
[src]
fn get_environment_type(&self) -> EnvironmentType
[src]
fn get_global_object(&self) -> Option<Value>
[src]
impl Finalize for FunctionEnvironmentRecord
[src]
impl Trace for FunctionEnvironmentRecord
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FunctionEnvironmentRecord
impl !Send for FunctionEnvironmentRecord
impl !Sync for FunctionEnvironmentRecord
impl Unpin for FunctionEnvironmentRecord
impl !UnwindSafe for FunctionEnvironmentRecord
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> NativeObject for T where
T: Any + Debug + Trace,
[src]
T: Any + Debug + Trace,
fn as_any(&Self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,