pub struct CodeRealm {
pub intrinsics: HashMap<WellKnownIntrinsics, JsObjectType>,
pub global_this: Option<JsObjectType>,
pub global_env: Option<JsLexEnvironmentType>,
}Fields§
§intrinsics: HashMap<WellKnownIntrinsics, JsObjectType>§global_this: Option<JsObjectType>§global_env: Option<JsLexEnvironmentType>Implementations§
Source§impl CodeRealm
impl CodeRealm
pub fn new() -> Self
pub fn get_intrinsics_value( &self, int_name: &WellKnownIntrinsics, ) -> &JsObjectType
Auto Trait Implementations§
impl Freeze for CodeRealm
impl !RefUnwindSafe for CodeRealm
impl !Send for CodeRealm
impl !Sync for CodeRealm
impl Unpin for CodeRealm
impl !UnwindSafe for CodeRealm
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