Struct v8::UnboundScript
source · #[repr(C)]pub struct UnboundScript(_);
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: &mut HandleScope<'s>
) -> Local<'s, Script>
pub fn bind_to_current_context<'s>(
&self,
scope: &mut HandleScope<'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.
Trait Implementations§
source§impl Debug for UnboundScript
impl Debug for UnboundScript
source§impl<'s> PartialEq<UnboundScript> for UnboundScript
impl<'s> PartialEq<UnboundScript> for UnboundScript
source§fn eq(&self, other: &UnboundScript) -> bool
fn eq(&self, other: &UnboundScript) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.