#[repr(C)]pub struct Script(_);
Expand description
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
Implementations§
source§impl Script
impl Script
sourcepub fn compile<'s>(
scope: &mut HandleScope<'s>,
source: Local<'_, String>,
origin: Option<&ScriptOrigin<'_>>
) -> Option<Local<'s, Script>>
pub fn compile<'s>( scope: &mut HandleScope<'s>, source: Local<'_, String>, origin: Option<&ScriptOrigin<'_>> ) -> Option<Local<'s, Script>>
A shorthand for ScriptCompiler::Compile().
sourcepub fn get_unbound_script<'s>(
&self,
scope: &mut HandleScope<'s>
) -> Local<'s, UnboundScript>
pub fn get_unbound_script<'s>( &self, scope: &mut HandleScope<'s> ) -> Local<'s, UnboundScript>
Returns the corresponding context-unbound script.
Trait Implementations§
source§impl<'s> PartialEq<Script> for Script
impl<'s> PartialEq<Script> for Script
impl Eq for Script
Auto Trait Implementations§
impl RefUnwindSafe for Script
impl Send for Script
impl Sync for Script
impl Unpin for Script
impl UnwindSafe for Script
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