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
ExportedScope(ExportedScopeNode)Tuple Fields of ExportedScope
InternalScope(InternalScopeNode)Tuple Fields of InternalScope
JumpTo(JumpToNode)Tuple Fields of JumpTo
0: JumpToNodePopScopedSymbol(PopScopedSymbolNode)Tuple Fields of PopScopedSymbol
PopSymbol(PopSymbolNode)Tuple Fields of PopSymbol
PushScopedSymbol(PushScopedSymbolNode)Tuple Fields of PushScopedSymbol
PushSymbol(PushSymbolNode)Tuple Fields of PushSymbol
Root(RootNode)Tuple Fields of Root
0: RootNodeImplementations
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.