pub struct SymbolRelation {
pub path: String,
pub source_name: String,
pub target_name: String,
pub kind: RelationKind,
pub line: usize,
pub context: String,
pub parser: ParserKind,
}Expand description
A directed relation between symbols or source-level references.
Fields§
§path: StringRepository-relative file path.
source_name: StringSource symbol name or module sentinel.
target_name: StringTarget symbol, import path, or dependency name.
kind: RelationKindRelation kind.
line: usizeOne-based line where the relation appears.
context: StringCompact source context for the relation.
parser: ParserKindParser strategy that produced this relation.
Trait Implementations§
Source§impl Clone for SymbolRelation
impl Clone for SymbolRelation
Source§fn clone(&self) -> SymbolRelation
fn clone(&self) -> SymbolRelation
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 SymbolRelation
impl Debug for SymbolRelation
Source§impl<'de> Deserialize<'de> for SymbolRelation
impl<'de> Deserialize<'de> for SymbolRelation
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
Source§impl PartialEq for SymbolRelation
impl PartialEq for SymbolRelation
Source§impl Serialize for SymbolRelation
impl Serialize for SymbolRelation
impl Eq for SymbolRelation
impl StructuralPartialEq for SymbolRelation
Auto Trait Implementations§
impl Freeze for SymbolRelation
impl RefUnwindSafe for SymbolRelation
impl Send for SymbolRelation
impl Sync for SymbolRelation
impl Unpin for SymbolRelation
impl UnwindSafe for SymbolRelation
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.