pub struct ResolvedReference {
pub file_path: PathBuf,
pub range: SourceRange,
pub source: SymbolId,
pub target: SymbolId,
pub confidence: f32,
}Expand description
One resolved use of a name, with the site that produced it.
The graph edge alone names the source and target symbols; this record keeps the reference range too, so a consumer can point at the exact use instead of re-deriving the mapping from names.
Fields§
§file_path: PathBufPath of the referencing file, as extracted.
range: SourceRangeRange of the unresolved reference itself.
source: SymbolIdSymbol that contains the reference.
target: SymbolIdSymbol the name resolves to.
confidence: f32Confidence threaded from the scope cache.
Trait Implementations§
Source§impl Clone for ResolvedReference
impl Clone for ResolvedReference
Source§fn clone(&self) -> ResolvedReference
fn clone(&self) -> ResolvedReference
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 moreSource§impl Debug for ResolvedReference
impl Debug for ResolvedReference
Source§impl PartialEq for ResolvedReference
impl PartialEq for ResolvedReference
impl StructuralPartialEq for ResolvedReference
Auto Trait Implementations§
impl Freeze for ResolvedReference
impl RefUnwindSafe for ResolvedReference
impl Send for ResolvedReference
impl Sync for ResolvedReference
impl Unpin for ResolvedReference
impl UnsafeUnpin for ResolvedReference
impl UnwindSafe for ResolvedReference
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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