pub struct MiraScript { /* private fields */ }Expand description
A validated, reusable MiraScript program.
Implementations§
Source§impl MiraScript
impl MiraScript
Sourcepub fn run(&self, context: &MiraContext) -> Result<MiraAny>
pub fn run(&self, context: &MiraContext) -> Result<MiraAny>
Execute this program with default RunOptions.
Sourcepub fn run_with(
&self,
context: &MiraContext,
options: &RunOptions,
) -> Result<MiraAny>
pub fn run_with( &self, context: &MiraContext, options: &RunOptions, ) -> Result<MiraAny>
Execute this program with explicit limits and runtime providers.
Trait Implementations§
Source§impl Clone for MiraScript
impl Clone for MiraScript
Source§fn clone(&self) -> MiraScript
fn clone(&self) -> MiraScript
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for MiraScript
impl !Send for MiraScript
impl !Sync for MiraScript
impl !UnwindSafe for MiraScript
impl Freeze for MiraScript
impl Unpin for MiraScript
impl UnsafeUnpin for MiraScript
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