pub struct StackFrame {
pub function: String,
pub locals: Vec<(String, u64)>,
pub return_address: usize,
}Expand description
A simulated stack frame for explicit-stack recursion.
Fields§
§function: StringThe function name at this frame.
locals: Vec<(String, u64)>Local variable bindings as (name, value) pairs.
return_address: usizeThe return address (index into a bytecode chunk).
Implementations§
Trait Implementations§
Source§impl Clone for StackFrame
impl Clone for StackFrame
Source§fn clone(&self) -> StackFrame
fn clone(&self) -> StackFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StackFrame
impl RefUnwindSafe for StackFrame
impl Send for StackFrame
impl Sync for StackFrame
impl Unpin for StackFrame
impl UnsafeUnpin for StackFrame
impl UnwindSafe for StackFrame
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