[−][src]Struct rusty_v8::Script
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
Implementations
impl Script
[src]
pub fn compile<'s>(
scope: &mut HandleScope<'s>,
source: Local<String>,
origin: Option<&ScriptOrigin>
) -> Option<Local<'s, Script>>
[src]
scope: &mut HandleScope<'s>,
source: Local<String>,
origin: Option<&ScriptOrigin>
) -> Option<Local<'s, Script>>
A shorthand for ScriptCompiler::Compile().
pub fn run<'s>(&self, scope: &mut HandleScope<'s>) -> Option<Local<'s, Value>>
[src]
Runs the script returning the resulting value. It will be run in the context in which it was created (ScriptCompiler::CompileBound or UnboundScript::BindToCurrentContext()).
Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,