pub struct DebugLocalEntry {
pub slot: u16,
pub name: String,
pub declaring_range: Option<(u32, u32, u32)>,
pub synthetic: bool,
}Expand description
One row in a container’s DebugInfo locals table
(docs/debugger-spec.md §3): a VM temp slot’s declared name, and
optionally the source range it was declared at (for slot-reuse
disambiguation). D7’s payload (docs/debugger-spec.md §3, issue
#3185) — D6 emits the structural framing (an empty locals per
container) but does not populate real entries; the wire shape ships now
so D7 adds data without a layout change.
Fields§
§slot: u16Matches the u16 operand DeclareTemp/GetTemp/SetTemp use.
name: String§declaring_range: Option<(u32, u32, u32)>The declaring range, if known: (file_idx, range_start, range_len),
the same triple shape entries use (§2.2).
synthetic: boolA temp the compiler minted rather than the author (issue #3395: the
lift-order hoist’s $liftN temps — docs/debugger-spec.md §3).
The studio’s locals view hides these rows; the value is real and
still resolvable by slot for tooling that wants it. Wire: bit 1 of
the row’s flags byte (section version 2), false for every row a
version-1 writer produced.
Trait Implementations§
Source§impl Clone for DebugLocalEntry
impl Clone for DebugLocalEntry
Source§fn clone(&self) -> DebugLocalEntry
fn clone(&self) -> DebugLocalEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more