pub struct Stack {
pub global: LuaValue,
pub local_variables: Vec<RefOrValue>,
pub bp: usize,
pub data_stack: Vec<LuaValue>,
pub usize_stack: Vec<usize>,
pub function_stack: Vec<FunctionStackElem>,
pub counter: usize,
}Fields§
§global: LuaValue_G
local_variables: Vec<RefOrValue>§bp: usizeoffset of local variables
data_stack: Vec<LuaValue>normal stack, for temporary values
usize_stack: Vec<usize>stack for storing usize values
function_stack: Vec<FunctionStackElem>§counter: usizecurrent instruction counter
Implementations§
source§impl Stack
impl Stack
sourcepub fn local_variable(&self, i: usize) -> &RefOrValue
pub fn local_variable(&self, i: usize) -> &RefOrValue
get reference of i’th local variable
sourcepub fn local_variable_mut(&mut self, i: usize) -> &mut RefOrValue
pub fn local_variable_mut(&mut self, i: usize) -> &mut RefOrValue
get mutable reference of i’th local variable
Auto Trait Implementations§
impl Freeze for Stack
impl !RefUnwindSafe for Stack
impl !Send for Stack
impl !Sync for Stack
impl Unpin for Stack
impl !UnwindSafe for Stack
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