pub struct Step {
pub guard: Option<GuardExpr>,
pub kind: StepKind,
pub scope_enter: usize,
pub scope_exit: usize,
pub line: usize,
pub col: usize,
}Fields§
§guard: Option<GuardExpr>§kind: StepKind§scope_enter: usize§scope_exit: usize§line: usize1-based source line of the statement that produced this step
(0 when unknown: hand-built steps, synthetic streams). Stamped
at lower time from the split statement, so runtime errors can
name the failing line. Never rendered by Display (output must
stay reparse-stable) and never compared by content equality
(provenance, like quoting flags and scope markers).
col: usize1-based column where the statement starts (0 when unknown).
Same stamping, same provenance rules as line; runtime errors
render both.
Implementations§
Source§impl Step
impl Step
Sourcepub fn span(&self) -> Span
pub fn span(&self) -> Span
Definition span for this step in the shared transport type.
Derived from the stamped line/col provenance (no new data,
so equality and rendering are untouched): line-only when the
column is unknown, fully unknown when the line is 0.
Sourcepub fn defined_symbol(&self) -> Option<(&str, Span)>
pub fn defined_symbol(&self) -> Option<(&str, Span)>
Symbol this step defines, with its definition span. Covers
TYPE aliases and FUNC definitions only: the go-to-definition
primitive future symbol tables build on. Returns None for
every other step.