#[repr(C)]pub struct Script(_);
Expand description
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
Implementations
sourceimpl 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
sourceimpl<'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
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