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
Tuple Fields of DropScopes
Tuple Fields of ExportedScope
Tuple Fields of InternalScope
Tuple Fields of JumpTo
0: JumpToNode
Tuple Fields of PopScopedSymbol
Tuple Fields of PopSymbol
Tuple Fields of PushScopedSymbol
Tuple Fields of PushSymbol
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 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.