pub struct Runtime { /* private fields */ }Expand description
Runtime environment for scripting.
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn execute(
&mut self,
chunk: &Chunk,
globals: &mut dyn Environment,
) -> Result<ScriptingValue, Error>
pub fn execute( &mut self, chunk: &Chunk, globals: &mut dyn Environment, ) -> Result<ScriptingValue, Error>
Sourcepub fn continue_run(
&mut self,
script: &str,
globals: &mut dyn Environment,
) -> Result<ScriptingValue, Error>
pub fn continue_run( &mut self, script: &str, globals: &mut dyn Environment, ) -> Result<ScriptingValue, Error>
Sourcepub fn run(
&mut self,
script: &str,
globals: &mut dyn Environment,
) -> Result<ScriptingValue, Error>
pub fn run( &mut self, script: &str, globals: &mut dyn Environment, ) -> Result<ScriptingValue, Error>
Trait Implementations§
Source§impl Clone for Runtime
Cloning a Runtime is cloning the environment.
Parser, VM and stdout are created new.
impl Clone for Runtime
Cloning a Runtime is cloning the environment. Parser, VM and stdout are created new.
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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