pub struct ResolvedSemanticEdge {
pub source_occurrence: u32,
pub target_path: String,
pub target_file_node: ContentHash,
pub target_definition: u32,
pub kind: SemanticEdgeKind,
}Expand description
A resolved occurrence-to-definition edge.
Fields§
§source_occurrence: u32Source-local occurrence id in the source file’s semantic node.
target_path: StringRepository-relative path containing the target definition.
target_file_node: ContentHashContent address of the target file’s semantic node.
target_definition: u32Canonical index of the target definition in SemanticFileNode::symbols.
kind: SemanticEdgeKindSemantic relationship carried by this edge.
Trait Implementations§
Source§impl Clone for ResolvedSemanticEdge
impl Clone for ResolvedSemanticEdge
Source§fn clone(&self) -> ResolvedSemanticEdge
fn clone(&self) -> ResolvedSemanticEdge
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 ResolvedSemanticEdge
impl Debug for ResolvedSemanticEdge
Source§impl<'de> Deserialize<'de> for ResolvedSemanticEdge
impl<'de> Deserialize<'de> for ResolvedSemanticEdge
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 Eq for ResolvedSemanticEdge
Source§impl Ord for ResolvedSemanticEdge
impl Ord for ResolvedSemanticEdge
Source§fn cmp(&self, other: &ResolvedSemanticEdge) -> Ordering
fn cmp(&self, other: &ResolvedSemanticEdge) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResolvedSemanticEdge
impl PartialEq for ResolvedSemanticEdge
Source§impl PartialOrd for ResolvedSemanticEdge
impl PartialOrd for ResolvedSemanticEdge
Source§impl Serialize for ResolvedSemanticEdge
impl Serialize for ResolvedSemanticEdge
impl StructuralPartialEq for ResolvedSemanticEdge
Auto Trait Implementations§
impl Freeze for ResolvedSemanticEdge
impl RefUnwindSafe for ResolvedSemanticEdge
impl Send for ResolvedSemanticEdge
impl Sync for ResolvedSemanticEdge
impl Unpin for ResolvedSemanticEdge
impl UnsafeUnpin for ResolvedSemanticEdge
impl UnwindSafe for ResolvedSemanticEdge
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