pub struct SemanticGraphRef {
pub source_path: String,
pub source_occurrence: u32,
pub name: String,
pub role: Option<OccurrenceRole>,
pub kind: SemanticEdgeKind,
pub span: Option<ByteSpan>,
pub target: SymbolAnchor,
pub target_definition: u32,
}Expand description
One persisted reference to a definition, reconstructed without parsing.
Fields§
§source_path: String§source_occurrence: u32§name: String§role: Option<OccurrenceRole>§kind: SemanticEdgeKind§span: Option<ByteSpan>§target: SymbolAnchor§target_definition: u32Trait Implementations§
Source§impl Clone for SemanticGraphRef
impl Clone for SemanticGraphRef
Source§fn clone(&self) -> SemanticGraphRef
fn clone(&self) -> SemanticGraphRef
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 SemanticGraphRef
impl Debug for SemanticGraphRef
Source§impl<'de> Deserialize<'de> for SemanticGraphRef
impl<'de> Deserialize<'de> for SemanticGraphRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SemanticGraphRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SemanticGraphRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemanticGraphRef
Source§impl PartialEq for SemanticGraphRef
impl PartialEq for SemanticGraphRef
Source§impl Serialize for SemanticGraphRef
impl Serialize for SemanticGraphRef
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SemanticGraphRef
Auto Trait Implementations§
impl Freeze for SemanticGraphRef
impl RefUnwindSafe for SemanticGraphRef
impl Send for SemanticGraphRef
impl Sync for SemanticGraphRef
impl Unpin for SemanticGraphRef
impl UnsafeUnpin for SemanticGraphRef
impl UnwindSafe for SemanticGraphRef
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