pub struct Edge {
pub src: GlobalSymbolId,
pub dst: GlobalSymbolId,
pub kind: EdgeKind,
pub confidence: f32,
pub cross_repo: bool,
}Expand description
A directed relationship between two symbols. Edges may cross repo boundaries once the link-resolver has bound package-managed references to their definitions.
Fields§
§src: GlobalSymbolId§dst: GlobalSymbolId§kind: EdgeKind§confidence: f32Resolver confidence in [0.0, 1.0] (syntactic tree-sitter edges are < 1.0).
cross_repo: boolWhether src and dst live in different repos.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Forget for Edge
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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