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_kindid: sg_node_idsymbol: 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.