pub struct GraphNode { /* private fields */ }Expand description
One structural entity of a code graph.
Implementations§
Source§impl GraphNode
impl GraphNode
Sourcepub fn id(&self) -> GraphNodeId
pub fn id(&self) -> GraphNodeId
This node’s dense identity, equal to its position in the graph.
Sourcepub fn kind(&self) -> &GraphNodeKind
pub fn kind(&self) -> &GraphNodeKind
What kind of entity this node is.
Sourcepub fn location(&self) -> Option<&GraphNodeLocation>
pub fn location(&self) -> Option<&GraphNodeLocation>
Where this node’s bytes sit, when it has any.
Trait Implementations§
impl Eq for GraphNode
impl StructuralPartialEq for GraphNode
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
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