Struct stack_vm::Frame
[−]
[src]
pub struct Frame<T> { pub return_address: usize, // some fields omitted }
A call frame.
Contains:
* A WriteManyTable
for storage of local variables.
* A return address - the instruction pointer for the machine to return to
when returning from this call.
Fields
return_address: usize
Methods
impl<T> Frame<T>
[src]
fn new(return_address: usize) -> Frame<T>
[src]
Creates a new call frame with the specified return address.
fn get_local(&self, name: &str) -> Option<&T>
[src]
Return a reference to the specified local variable.
fn set_local(&mut self, name: &str, value: T)
[src]
Set the value of a local variable.