Struct v8::UnboundScript
source · [−]#[repr(C)]pub struct UnboundScript(_);
Expand description
A compiled JavaScript script, not yet tied to a Context.
Implementations
sourceimpl 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
sourceimpl Debug for UnboundScript
impl Debug for UnboundScript
sourceimpl<'s> PartialEq<UnboundScript> for UnboundScript
impl<'s> PartialEq<UnboundScript> for UnboundScript
impl Eq for UnboundScript
Auto Trait Implementations
impl RefUnwindSafe for UnboundScript
impl Send for UnboundScript
impl Sync for UnboundScript
impl Unpin for UnboundScript
impl UnwindSafe for UnboundScript
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more