pub struct StatementRun {
pub block: u32,
pub start: u32,
pub length: u32,
}Expand description
Where a statement-window fragment sits in its unit’s statement sequences.
This is position, not identity: it lets adjacent window matches be folded
back into one maximal statement run (crate::maximal), and it never
enters a fingerprint (AGENTS.md invariant 3).
Fields§
§block: u32Ordinal of the enclosing block within the unit, in walk order.
start: u32Index of the run’s first statement within that block.
length: u32Length of the run, in statements.
Implementations§
Trait Implementations§
Source§impl Clone for StatementRun
impl Clone for StatementRun
Source§fn clone(&self) -> StatementRun
fn clone(&self) -> StatementRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StatementRun
Source§impl Debug for StatementRun
impl Debug for StatementRun
impl Eq for StatementRun
Source§impl Ord for StatementRun
impl Ord for StatementRun
Source§fn cmp(&self, other: &StatementRun) -> Ordering
fn cmp(&self, other: &StatementRun) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StatementRun
impl PartialEq for StatementRun
Source§impl PartialOrd for StatementRun
impl PartialOrd for StatementRun
impl StructuralPartialEq for StatementRun
Auto Trait Implementations§
impl Freeze for StatementRun
impl RefUnwindSafe for StatementRun
impl Send for StatementRun
impl Sync for StatementRun
impl Unpin for StatementRun
impl UnsafeUnpin for StatementRun
impl UnwindSafe for StatementRun
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key and return true if they are equal.