Struct stack_graphs::c::sg_node [−][src]
#[repr(C)]pub struct sg_node {
pub kind: sg_node_kind,
pub id: sg_node_id,
pub symbol: sg_symbol_handle,
pub scope: sg_node_id,
pub is_clickable: bool,
}
Expand description
A node in a stack graph.
Fields
kind: sg_node_kind
id: sg_node_id
symbol: sg_symbol_handle
The symbol associated with this node. For push nodes, this is the symbol that will be pushed onto the symbol stack. For pop nodes, this is the symbol that we expect to pop off the symbol stack. For all other node types, this will be null.
scope: sg_node_id
The scope associated with this node. For push scope nodes, this is the scope that will be attached to the symbol before it’s pushed onto the symbol stack. For all other node types, this will be null.
is_clickable: bool
Whether this node is “clickable”. For push nodes, this indicates that the node represents a reference in the source. For pop nodes, this indicates that the node represents a definition in the source. For all other node types, this field will be unused.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for sg_node
impl UnwindSafe for sg_node
Blanket Implementations
Mutably borrows from an owned value. Read more