[−][src]Struct stack_vm::Frame
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]
pub fn new(return_address: usize) -> Frame<T>
[src]
Creates a new call frame with the specified return address.
pub fn get_local(&self, name: &str) -> Option<&T>
[src]
Return a reference to the specified local variable.
pub fn set_local(&mut self, name: &str, value: T)
[src]
Set the value of a local variable.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,