pub struct ObjectEnvironmentRecord { /* private fields */ }Implementations§
Source§impl ObjectEnvironmentRecord
impl ObjectEnvironmentRecord
pub fn new(o: JsObjectType) -> Self
Trait Implementations§
Source§impl EnvironmentRecord for ObjectEnvironmentRecord
impl EnvironmentRecord for ObjectEnvironmentRecord
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 ObjectEnvironmentRecord
impl !RefUnwindSafe for ObjectEnvironmentRecord
impl !Send for ObjectEnvironmentRecord
impl !Sync for ObjectEnvironmentRecord
impl Unpin for ObjectEnvironmentRecord
impl !UnwindSafe for ObjectEnvironmentRecord
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