pub struct ResolvedSpan {
pub node_id: NodeId,
pub match_id: String,
pub name: String,
pub kind: String,
pub language: Option<String>,
pub file_path: String,
pub byte_start: usize,
pub byte_end: usize,
pub line_start: usize,
pub line_end: usize,
pub col_start: usize,
pub col_end: usize,
}Expand description
A resolved symbol with complete location information.
Fields§
§node_id: NodeIdGraph node ID for this symbol.
match_id: StringUnique ID for this resolution attempt (generated once per resolve call).
name: StringSymbol name.
kind: StringSymbol kind (function, struct, etc.) as language-agnostic string.
language: Option<String>Programming language (rust, python, etc.).
file_path: StringFile containing this symbol.
byte_start: usizeStart byte offset.
byte_end: usizeEnd byte offset.
line_start: usizeStart line (1-based).
line_end: usizeEnd line (1-based).
col_start: usizeStart column (0-based, in bytes).
col_end: usizeEnd column (0-based, in bytes).
Trait Implementations§
Source§impl Clone for ResolvedSpan
impl Clone for ResolvedSpan
Source§fn clone(&self) -> ResolvedSpan
fn clone(&self) -> ResolvedSpan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedSpan
impl Debug for ResolvedSpan
Source§impl From<ResolvedSpan> for SpanResult
impl From<ResolvedSpan> for SpanResult
Source§fn from(span: ResolvedSpan) -> Self
fn from(span: ResolvedSpan) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResolvedSpan
impl PartialEq for ResolvedSpan
Source§impl Serialize for ResolvedSpan
impl Serialize for ResolvedSpan
impl StructuralPartialEq for ResolvedSpan
Auto Trait Implementations§
impl Freeze for ResolvedSpan
impl RefUnwindSafe for ResolvedSpan
impl Send for ResolvedSpan
impl Sync for ResolvedSpan
impl Unpin for ResolvedSpan
impl UnsafeUnpin for ResolvedSpan
impl UnwindSafe for ResolvedSpan
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more