Struct moore_svlog::resolver::Rib[][src]

pub struct Rib {
    pub node: NodeId,
    pub parent: Option<NodeId>,
    pub kind: RibKind,
}
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

Look up a name.

Resolve import ribs to the imported rib.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.