Struct stack_graphs::partial::PartialScopeStack[][src]

#[repr(C)]
pub struct PartialScopeStack { /* fields omitted */ }
Expand description

A pattern that might match against a scope stack. Consists of a (possibly empty) list of exported scopes, along with an optional scope stack variable.

Implementations

Returns whether this partial scope stack can only match the empty scope stack.

Returns whether this partial scope stack contains any scopes.

Returns an empty partial scope stack.

Returns a partial scope stack containing only a scope stack variable.

Matches this partial scope stack against a scope stack, unifying any scope stack variables with an existing set of bindings.

Returns whether two partial scope stacks match exactly the same set of scope stacks.

Applies a set of scope stack bindings to this partial scope stack, producing a new scope stack.

Pushes a new Node onto the front of this partial scope stack. The node must be an exported scope node.

Pushes a new Node onto the back of this partial scope stack. The node must be an exported scope node.

Removes and returns the Node at the front of this partial scope stack. If the stack does not contain any exported scope nodes, returns None.

Removes and returns the Node at the back of this partial scope stack. If the stack does not contain any exported scope nodes, returns None.

Returns the scope stack variable at the end of this partial scope stack. If the stack does not contain a scope stack variable, returns None.

Returns an iterator over the scopes in this partial scope stack.

Returns an iterator over the contents of this partial scope stack, with no guarantee about the ordering of the elements.

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.