pub struct DebugPosition {
pub container_idx: u32,
pub offset: usize,
}Expand description
Precise execution position: a container index plus the byte offset of the next instruction to execute inside that container’s bytecode.
A public mirror of the runtime-internal
story::call_stack::ContainerPosition — deliberately a distinct type
(issue #3182) rather than that type made pub, so the VM’s internal
call-frame layout stays free to change without turning into a de facto
compatibility surface. container_idx is stable within one linked
Program (it indexes the same Containers table
Program::container_bytecode reads and the table
docs/debugger-spec.md §2.2’s DebugInfo section addresses
lockstep-by-index); offset is a byte offset into that container’s
bytecode, not a source location — resolving position to source is a
later workstream (D6/D9, docs/debugger-spec.md).
Fields§
§container_idx: u32Index into the linked program’s container table.
offset: usizeByte offset into that container’s bytecode.
Trait Implementations§
Source§impl Clone for DebugPosition
impl Clone for DebugPosition
Source§fn clone(&self) -> DebugPosition
fn clone(&self) -> DebugPosition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more