pub struct Node {
pub id: NodeId,
pub kind: NodeKind,
pub name: String,
pub qualified_name: String,
pub file: PathBuf,
pub span: Span,
pub metadata: NodeMetadata,
}Expand description
A single named entity in the knowledge graph.
Fields§
§id: NodeId§kind: NodeKind§name: StringShort unqualified name (e.g. "greet", not "Person::greet").
qualified_name: StringQualified path within the module hierarchy (e.g. "crate::person::Person::greet").
file: PathBufRepo-relative path to the source file.
span: Span§metadata: NodeMetadataTrait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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