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.
Trait Implementations§
impl Eq for Step
Auto Trait Implementations§
impl Forget for Step
impl Freeze for Step
impl Move for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.