pub struct UnboundScript(/* private fields */);Expand description
A compiled JavaScript script, not yet tied to a Context.
Implementations§
Source§impl UnboundScript
impl UnboundScript
Sourcepub fn bind_to_current_context<'s>(
&self,
scope: &PinScope<'s, '_>,
) -> Local<'s, Script>
pub fn bind_to_current_context<'s>( &self, scope: &PinScope<'s, '_>, ) -> Local<'s, Script>
Binds the script to the currently entered context.
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_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: &PinScope<'s, '_>, ) -> Local<'s, Value>
pub fn get_source_url<'s>(&self, scope: &PinScope<'s, '_>) -> Local<'s, Value>
Trait Implementations§
Source§impl Debug for UnboundScript
impl Debug for UnboundScript
Source§impl<'s> PartialEq for UnboundScript
impl<'s> PartialEq for UnboundScript
impl Eq for UnboundScript
Auto Trait Implementations§
impl Freeze for UnboundScript
impl RefUnwindSafe for UnboundScript
impl Send for UnboundScript
impl Sync for UnboundScript
impl Unpin for UnboundScript
impl UnwindSafe for UnboundScript
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