pub struct FunctionEnvironmentRecord { /* private fields */ }Implementations§
Source§impl FunctionEnvironmentRecord
impl FunctionEnvironmentRecord
pub fn new(f: JsObjectType, new_target: Option<JsObjectType>) -> Self
pub fn bind_this_value(&mut self, this: JsValue) -> Result<bool, JErrorType>
pub fn get_this_binding(&self) -> Result<&JsValue, JErrorType>
pub fn get_super_base(&self) -> Option<JsObjectType>
Trait Implementations§
Source§impl EnvironmentRecord for FunctionEnvironmentRecord
impl EnvironmentRecord for FunctionEnvironmentRecord
fn has_binding(&self, name: &String) -> bool
fn create_mutable_binding( &mut self, name: String, can_delete: bool, ) -> Result<(), JErrorType>
fn create_immutable_binding(&mut self, name: String) -> Result<(), JErrorType>
fn initialize_binding( &mut self, ctx_stack: &mut ExecutionContextStack, name: String, value: JsValue, ) -> Result<bool, JErrorType>
fn set_mutable_binding( &mut self, ctx_stack: &mut ExecutionContextStack, name: String, value: JsValue, ) -> Result<(), JErrorType>
fn get_binding_value( &self, ctx_stack: &mut ExecutionContextStack, name: &String, ) -> Result<JsValue, JErrorType>
fn delete_binding(&mut self, name: &String) -> Result<bool, JErrorType>
fn has_this_binding(&self) -> bool
fn has_super_binding(&self) -> bool
Auto Trait Implementations§
impl Freeze for FunctionEnvironmentRecord
impl !RefUnwindSafe for FunctionEnvironmentRecord
impl !Send for FunctionEnvironmentRecord
impl !Sync for FunctionEnvironmentRecord
impl Unpin for FunctionEnvironmentRecord
impl !UnwindSafe for FunctionEnvironmentRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more