pub struct SourceTokenSpan {
pub file: usize,
pub token_start: usize,
pub token_end: usize,
}Expand description
A half-open token span in one SyntaxIrFile.
This is a reporting anchor, not an identity input. Callers use it to measure raw source evidence after structural detection has completed.
Fields§
§file: usizeIndex of the source file in the IR slice.
token_start: usizeIndex of the first token in the span.
token_end: usizeIndex one past the final token in the span.
Implementations§
Trait Implementations§
Source§impl Clone for SourceTokenSpan
impl Clone for SourceTokenSpan
Source§fn clone(&self) -> SourceTokenSpan
fn clone(&self) -> SourceTokenSpan
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 SourceTokenSpan
Source§impl Debug for SourceTokenSpan
impl Debug for SourceTokenSpan
impl Eq for SourceTokenSpan
Source§impl PartialEq for SourceTokenSpan
impl PartialEq for SourceTokenSpan
impl StructuralPartialEq for SourceTokenSpan
Auto Trait Implementations§
impl Freeze for SourceTokenSpan
impl RefUnwindSafe for SourceTokenSpan
impl Send for SourceTokenSpan
impl Sync for SourceTokenSpan
impl Unpin for SourceTokenSpan
impl UnsafeUnpin for SourceTokenSpan
impl UnwindSafe for SourceTokenSpan
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> 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.