Struct lovm2_core::vm::Frame[][src]

pub struct Frame {
    pub argn: u8,
    // some fields omitted
}

A stack frame used in Context.lstack

Fields

argn: u8

Amount of parameters passed to the frame

Implementations

impl Frame[src]

pub fn new(argn: u8) -> Self[src]

pub fn set_local<T>(&mut self, var: T, value: Value) where
    T: AsRef<str>, 
[src]

Create or update a local value.

pub fn value_of<T>(&self, var: T) -> Lovm2Result<&Value> where
    T: AsRef<str>, 
[src]

Try looking up the value of a local variable.

Trait Implementations

impl Debug for Frame[src]

Auto Trait Implementations

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.