Struct stack_graphs::partial::PartialScopedSymbol[][src]

#[repr(C)]
pub struct PartialScopedSymbol { pub symbol: Handle<Symbol>, pub scopes: ControlledOption<PartialScopeStack>, }
Expand description

A symbol with an unknown, but possibly empty, list of exported scopes attached to it.

Fields

symbol: Handle<Symbol>scopes: ControlledOption<PartialScopeStack>

Implementations

Applies an offset to this scoped symbol.

When concatenating partial paths, we have to ensure that the left- and right-hand sides have non-overlapping sets of variables. To do this, we find the maximum value of any variable on the left-hand side, and add this “offset” to the values of all of the variables on the right-hand side.

Matches this precondition symbol against a scoped symbol, unifying its contents with an existing set of bindings.

Matches this precondition symbol against another, unifying its contents with an existing set of bindings.

Returns whether two partial scoped symbols “match”. The symbols must be identical, and any attached scopes must also match.

Applies a set of bindings to this partial scoped symbol, producing a new scoped symbol.

Applies a set of bindings to this partial scoped symbol, producing a new scoped symbol.

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.