Struct stack_graphs::c::sg_partial_path[][src]

#[repr(C)]
pub struct sg_partial_path { pub start_node: sg_node_handle, pub end_node: sg_node_handle, pub symbol_stack_precondition: sg_partial_symbol_stack, pub symbol_stack_postcondition: sg_partial_symbol_stack, pub scope_stack_precondition: sg_partial_scope_stack, pub scope_stack_postcondition: sg_partial_scope_stack, pub edges: sg_partial_path_edge_list, }
Expand description

A portion of a name-binding path.

Partial paths can be computed incrementally, in which case all of the edges in the partial path belong to a single file. At query time, we can efficiently concatenate partial paths to yield a name-binding path.

Paths describe the contents of the symbol stack and scope stack at the end of the path. Partial paths, on the other hand, have preconditions and postconditions for each stack. The precondition describes what the stack must look like for us to be able to concatenate this partial path onto the end of a path. The postcondition describes what the resulting stack looks like after doing so.

The preconditions can contain scope stack variables, which describe parts of the scope stack (or parts of a scope symbol’s attached scope list) whose contents we don’t care about. The postconditions can also refer to those variables, and describe how those variable parts of the input scope stacks are carried through unmodified into the resulting scope stack.

Fields

start_node: sg_node_handleend_node: sg_node_handlesymbol_stack_precondition: sg_partial_symbol_stacksymbol_stack_postcondition: sg_partial_symbol_stackscope_stack_precondition: sg_partial_scope_stackscope_stack_postcondition: sg_partial_scope_stackedges: sg_partial_path_edge_list

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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