pub struct LuaThread {
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,
pub func: Option<Rc<RefCell<LuaFunction>>>,
pub status: ThreadStatus,
}Fields§
§local_variables: Vec<RefOrValue>local variable stack
bp: usizeoffset of local variables for current scope
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
func: Option<Rc<RefCell<LuaFunction>>>if this thread is a coroutine, this is the function object of the coroutine
status: ThreadStatusImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaThread
impl !RefUnwindSafe for LuaThread
impl !Send for LuaThread
impl !Sync for LuaThread
impl Unpin for LuaThread
impl !UnwindSafe for LuaThread
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)