[−][src]Struct ogma::vm::Instance
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,
'a: 's,
impl<'s, 'a> !UnwindSafe for Instance<'s, 'a>
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>,