pub struct SemanticReference {
pub from: SymbolId,
pub to: SymbolId,
pub kind: SymbolEdgeKind,
pub source: SymbolSource,
}Expand description
Directed semantic relation between two summary-local symbol IDs.
§Examples
use ailloli_ui_editor::{code::SemanticReference, SymbolEdgeKind, SymbolId, SymbolSource};
let reference = SemanticReference { from: SymbolId(1), to: SymbolId(2), kind: SymbolEdgeKind::Calls, source: SymbolSource::Lsp };
assert_eq!(reference.to, SymbolId(2));Fields§
§from: SymbolIdSource symbol ID.
to: SymbolIdTarget symbol ID.
kind: SymbolEdgeKindDirected relation category.
source: SymbolSourceProvenance retained in this input model but omitted from SymbolEdge.
Trait Implementations§
Source§impl Clone for SemanticReference
impl Clone for SemanticReference
Source§fn clone(&self) -> SemanticReference
fn clone(&self) -> SemanticReference
Returns a copy 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 SemanticReference
impl Debug for SemanticReference
Source§impl<'de> Deserialize<'de> for SemanticReference
impl<'de> Deserialize<'de> for SemanticReference
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 SemanticReference
impl PartialEq for SemanticReference
Source§impl Serialize for SemanticReference
impl Serialize for SemanticReference
impl Eq for SemanticReference
impl StructuralPartialEq for SemanticReference
Auto Trait Implementations§
impl Freeze for SemanticReference
impl RefUnwindSafe for SemanticReference
impl Send for SemanticReference
impl Sync for SemanticReference
impl Unpin for SemanticReference
impl UnwindSafe for SemanticReference
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.