pub struct CallFrame {
pub id: usize,
pub chunk: Arc<Chunk>,
pub ip: *const u8,
pub current_ip: *const u8,
pub stack_top: usize,
pub this_fn: Option<Value>,
pub defers: Vec<Value>,
pub on_error: Option<Value>,
pub called: Value,
}
Fields§
§id: usize
§chunk: Arc<Chunk>
§ip: *const u8
§current_ip: *const u8
§stack_top: usize
§this_fn: Option<Value>
§defers: Vec<Value>
§on_error: Option<Value>
§called: Value
Implementations§
Source§impl CallFrame
impl CallFrame
Sourcepub fn current_line(&self) -> Option<u32>
pub fn current_line(&self) -> Option<u32>
Return the line number that corresponds to the current_ip if available.
Sourcepub fn current_offset(&self) -> usize
pub fn current_offset(&self) -> usize
Return the current offset (IP) for the frame using current_ip.
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