pub struct CallFrame {
pub chunk_id: usize,
pub name: String,
pub instruction_pointer: InstructionPointer,
pub start_slot: usize,
}
Expand description
A struct that stores information about an active function call.
CallFrame stores information about a function call that has not returned yet.
chunk_id
is the id of the chunk that defines the function.
name
– the name of the function.
instruction_pointer
– a pointer to a certain point in code which the function is executing.
start_slot
– the index in the operand stack at which the call frame starts.
Fields§
§chunk_id: usize
§name: String
§instruction_pointer: InstructionPointer
§start_slot: usize
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallFrame
impl RefUnwindSafe for CallFrame
impl Send for CallFrame
impl Sync for CallFrame
impl Unpin for CallFrame
impl UnwindSafe for CallFrame
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