#[repr(C)]pub struct UnboundModuleScript(/* private fields */);
Expand description
A compiled JavaScript module, not yet tied to a Context.
Implementations§
Source§impl UnboundModuleScript
impl UnboundModuleScript
Sourcepub fn create_code_cache(&self) -> Option<UniqueRef<CachedData<'static>>>
pub fn create_code_cache(&self) -> Option<UniqueRef<CachedData<'static>>>
Creates and returns code cache for the specified unbound_module_script. This will return nullptr if the script cannot be serialized. The CachedData returned by this function should be owned by the caller.
pub fn get_source_mapping_url<'s>( &self, scope: &mut HandleScope<'s>, ) -> Local<'s, Value>
pub fn get_source_url<'s>( &self, scope: &mut HandleScope<'s>, ) -> Local<'s, Value>
Methods from Deref<Target = Data>§
Sourcepub fn is_big_int(&self) -> bool
pub fn is_big_int(&self) -> bool
Returns true if this data is a BigInt
.
Sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Returns true if this data is a Boolean
.
Sourcepub fn is_context(&self) -> bool
pub fn is_context(&self) -> bool
Returns true if this data is a Context
.
Sourcepub fn is_fixed_array(&self) -> bool
pub fn is_fixed_array(&self) -> bool
Returns true if this data is a FixedArray
.
Sourcepub fn is_function_template(&self) -> bool
pub fn is_function_template(&self) -> bool
Returns true if this data is a FunctionTemplate
.
Sourcepub fn is_module_request(&self) -> bool
pub fn is_module_request(&self) -> bool
Returns true if this data is a ModuleRequest
.
Sourcepub fn is_object_template(&self) -> bool
pub fn is_object_template(&self) -> bool
Returns true if this data is a ObjectTemplate
.
Sourcepub fn is_primitive(&self) -> bool
pub fn is_primitive(&self) -> bool
Returns true if this data is a Primitive
.
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true if this data is a Private
.
Trait Implementations§
Source§impl Debug for UnboundModuleScript
impl Debug for UnboundModuleScript
Source§impl Deref for UnboundModuleScript
impl Deref for UnboundModuleScript
Source§impl<'s> PartialEq<Data> for UnboundModuleScript
impl<'s> PartialEq<Data> for UnboundModuleScript
Source§impl<'s> PartialEq<UnboundModuleScript> for Data
impl<'s> PartialEq<UnboundModuleScript> for Data
Source§impl<'s> PartialEq for UnboundModuleScript
impl<'s> PartialEq for UnboundModuleScript
impl Eq for UnboundModuleScript
Auto Trait Implementations§
impl Freeze for UnboundModuleScript
impl RefUnwindSafe for UnboundModuleScript
impl Send for UnboundModuleScript
impl Sync for UnboundModuleScript
impl Unpin for UnboundModuleScript
impl UnwindSafe for UnboundModuleScript
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