pub struct VMContext<'vm> {
pub stack: &'vm mut Vec<ValueWord>,
pub locals: &'vm mut Vec<ValueWord>,
pub globals: &'vm mut Vec<ValueWord>,
}Expand description
VM execution context passed to module functions
Fields§
§stack: &'vm mut Vec<ValueWord>Reference to the VM’s stack
locals: &'vm mut Vec<ValueWord>Reference to local variables
globals: &'vm mut Vec<ValueWord>Reference to global variables
Auto Trait Implementations§
impl<'vm> Freeze for VMContext<'vm>
impl<'vm> RefUnwindSafe for VMContext<'vm>
impl<'vm> Send for VMContext<'vm>
impl<'vm> Sync for VMContext<'vm>
impl<'vm> Unpin for VMContext<'vm>
impl<'vm> UnsafeUnpin for VMContext<'vm>
impl<'vm> !UnwindSafe for VMContext<'vm>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more