Enum stack_graphs::graph::Node[][src]

#[repr(C)]
pub enum Node {
    DropScopes(DropScopesNode),
    ExportedScope(ExportedScopeNode),
    InternalScope(InternalScopeNode),
    JumpTo(JumpToNode),
    PopScopedSymbol(PopScopedSymbolNode),
    PopSymbol(PopSymbolNode),
    PushScopedSymbol(PushScopedSymbolNode),
    PushSymbol(PushSymbolNode),
    Root(RootNode),
}
Expand description

A node in a stack graph.

Variants

DropScopes(DropScopesNode)

Tuple Fields of DropScopes

0: DropScopesNode
ExportedScope(ExportedScopeNode)

Tuple Fields of ExportedScope

0: ExportedScopeNode
InternalScope(InternalScopeNode)

Tuple Fields of InternalScope

0: InternalScopeNode
JumpTo(JumpToNode)

Tuple Fields of JumpTo

0: JumpToNode
PopScopedSymbol(PopScopedSymbolNode)

Tuple Fields of PopScopedSymbol

0: PopScopedSymbolNode
PopSymbol(PopSymbolNode)

Tuple Fields of PopSymbol

0: PopSymbolNode
PushScopedSymbol(PushScopedSymbolNode)

Tuple Fields of PushScopedSymbol

0: PushScopedSymbolNode
PushSymbol(PushSymbolNode)

Tuple Fields of PushSymbol

0: PushSymbolNode
Root(RootNode)

Tuple Fields of Root

0: RootNode

Implementations

Returns this node’s symbol, if it has one. (Pop symbol, pop scoped symbol, push symbol, and push scoped symbol nodes have symbols.)

Returns this node’s attached scope, if it has one. (Push scoped symbol nodes have attached scopes.)

Returns the ID of this node.

Returns the file that this node belongs to. Returns None for the singleton root and jump to scope nodes, which belong to all files.

Returns whether this node belongs to a particular file. Always returns true for the singleton root and jump to scope nodes, which belong to all files.

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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 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.