pub struct GlobalEnvironmentRecord { /* private fields */ }Implementations§
Source§impl GlobalEnvironmentRecord
impl GlobalEnvironmentRecord
pub fn new(global_object: JsObjectType) -> Self
pub fn get_this_binding(&self) -> &JsObjectType
pub fn has_var_declaration(&self, name: &String) -> bool
pub fn has_lexical_declaration(&self, name: &String) -> bool
pub fn has_restricted_global_property( &self, name: &String, ) -> Result<bool, JErrorType>
pub fn can_declare_global_var(&self, name: &String) -> Result<bool, JErrorType>
pub fn can_declare_global_function( &self, name: &String, ) -> Result<bool, JErrorType>
pub fn create_global_var_binding( &mut self, ctx_stack: &mut ExecutionContextStack, name: String, can_delete: bool, ) -> Result<(), JErrorType>
pub fn create_global_function_binding( &mut self, name: String, f: JsValue, can_delete: bool, ) -> Result<(), JErrorType>
Trait Implementations§
Source§impl EnvironmentRecord for GlobalEnvironmentRecord
impl EnvironmentRecord for GlobalEnvironmentRecord
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 GlobalEnvironmentRecord
impl !RefUnwindSafe for GlobalEnvironmentRecord
impl !Send for GlobalEnvironmentRecord
impl !Sync for GlobalEnvironmentRecord
impl Unpin for GlobalEnvironmentRecord
impl !UnwindSafe for GlobalEnvironmentRecord
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