[][src]Struct ogma_libs::vm::Instance

pub struct Instance<'s, 'a> { /* fields omitted */ }

A executable reference to a Script with an internal state

Implementations

impl<'s, 'a> Instance<'s, 'a>[src]

pub fn step(&mut self) -> Result<(), Trap>[src]

Step one function down the script

pub fn exec(&mut self) -> Result<(), Trap>[src]

Step through to the end of the script

pub fn reset(&mut self)[src]

Reset to the intitial state

pub fn ctx(&self) -> &Context[src]

Get the instance context

pub fn ctx_mut(&mut self) -> &mut Context[src]

Get a mutable reference to the context

Auto Trait Implementations

impl<'s, 'a> !RefUnwindSafe for Instance<'s, 'a>

impl<'s, 'a> !Send for Instance<'s, 'a>

impl<'s, 'a> !Sync for Instance<'s, 'a>

impl<'s, 'a> Unpin for Instance<'s, 'a> where
    'a: 's, 

impl<'s, 'a> !UnwindSafe for Instance<'s, 'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.