pub struct EdgeEnd {
pub symbol: SymbolRow,
pub kind: String,
pub confidence: String,
pub definitions: usize,
pub from_path: Option<String>,
pub from_line: Option<u32>,
pub line: Option<u32>,
}Expand description
One end of a traversal: the symbol reached, and the edge that reached it.
Fields§
§symbol: SymbolRow§kind: String§confidence: String§definitions: usizeHow many definitions of this name the store holds.
1 for an edge that could only ever mean one thing. Greater than one
on an ambiguous row, where it is the number a renderer prints instead
of listing every candidate as though each were a separate call — and on
a resolved row, where it is how many candidates the ranking had to
choose between, which is the difference between “there was only one”
and “there were four and the source said which”.
from_path: Option<String>The definition this edge actually leaves from.
edges_out is asked about a name, and a name can have several
definitions, each with its own edges. Without this the answer says only
that something called index reaches here — which is how a path
finder ends up walking out of one definition of a name and into
another without anything on the page saying so.
None from edges_in, where the queried name is the far end of the
edge and there is no single row it leaves from.
from_line: Option<u32>§line: Option<u32>The line the call, import or reference was written on, in the source
file named by from_path.
None for an edge written before 0.16.0, and for one whose source file
has not been re-indexed since. A renderer says nothing rather than
guessing when it is absent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EdgeEnd
impl RefUnwindSafe for EdgeEnd
impl Send for EdgeEnd
impl Sync for EdgeEnd
impl Unpin for EdgeEnd
impl UnsafeUnpin for EdgeEnd
impl UnwindSafe for EdgeEnd
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.