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 Stepwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GuardExpr>: Freeze,
*const GuardExpr is !null: Freeze,
&'static TypeDescriptor: Freeze,
*mut (): Freeze,
PhantomData<String>: Freeze,
PhantomData<Expr>: Freeze,
PhantomData<(String, Expr)>: Freeze,
PhantomData<Step>: Freeze,
*const Expr is !null: Freeze,
PhantomData<MathOp>: Freeze,
PhantomData<ArgPart>: Freeze,
PhantomData<(String, Arg)>: Freeze,
PhantomData<IoBinding>: Freeze,
*const StepKind is !null: Freeze,
PhantomData<StepKind>: Freeze,
PhantomData<(Box<Expr>, Vec<Step>)>: Freeze,
PhantomData<(Vec<Expr>, Vec<Step>)>: Freeze,
PhantomData<Arg>: Freeze,
PhantomData<(String, String, bool)>: Freeze,
impl Move for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Stepwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GuardExpr>: UnsafeUnpin,
*const GuardExpr is !null: UnsafeUnpin,
&'static TypeDescriptor: UnsafeUnpin,
*mut (): UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
PhantomData<(String, Expr)>: UnsafeUnpin,
PhantomData<Step>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<MathOp>: UnsafeUnpin,
PhantomData<ArgPart>: UnsafeUnpin,
PhantomData<(String, Arg)>: UnsafeUnpin,
PhantomData<IoBinding>: UnsafeUnpin,
*const StepKind is !null: UnsafeUnpin,
PhantomData<StepKind>: UnsafeUnpin,
PhantomData<(Box<Expr>, Vec<Step>)>: UnsafeUnpin,
PhantomData<(Vec<Expr>, Vec<Step>)>: UnsafeUnpin,
PhantomData<Arg>: UnsafeUnpin,
PhantomData<(String, String, bool)>: UnsafeUnpin,
impl UnwindSafe for Stepwhere
RawVecInner: UnwindSafe,
BoxRaw<GuardExpr>: UnwindSafe,
&'static TypeDescriptor: UnwindSafe,
*mut (): UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<StepKind>: UnwindSafe,
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.