Struct moore_svlog::resolver::Rib [−][src]
Expand description
One local scope.
A rib represents a any kind of scope. Ribs form a tree structure along their parents that may be traversed from the bottom to the top to perform name resolution, or top to bottom to lookup hierarchical names.
Fields
node: NodeId
The node this rib is associated with.
When querying the compiler for a node’s rib, what you get in return is not necessarily the rib of that node. If the node does not generate a new rib, you get back the rib of a parent node.
parent: Option<NodeId>
The parent rib.
Note that this does not necessarily correspond to the parent node, but may skip nodes that do not contain a rib.
kind: RibKind
The data associated with the rib.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rib
impl UnwindSafe for Rib
Blanket Implementations
Mutably borrows from an owned value. Read more