pub enum PathResolutionError {
Show 14 variants EmptyScopeStack, EmptySymbolStack, IncompatibleScopeStackVariables, IncompatibleSymbolStackVariables, IncorrectFile, IncorrectPoppedSymbol, IncorrectSourceNode, MissingAttachedScopeList, ScopeStackUnsatisfied, SymbolStackUnsatisfied, UnboundSymbolStackVariable, UnboundScopeStackVariable, UnexpectedAttachedScopeList, UnknownAttachedScope,
}
Expand description

Errors that can occur during the path resolution process.

Variants§

§

EmptyScopeStack

The path contains a jump to scope node, but there are no scopes on the scope stack to jump to.

§

EmptySymbolStack

The path contains a pop symbol or pop scoped symbol node, but there are no symbols on the symbol stack to pop off.

§

IncompatibleScopeStackVariables

The partial path contains multiple references to a scope stack variable, and those references can’t unify on a single scope stack.

§

IncompatibleSymbolStackVariables

The partial path contains multiple references to a symbol stack variable, and those references can’t unify on a single symbol stack.

§

IncorrectFile

The partial path contains edges from multiple files.

§

IncorrectPoppedSymbol

The path contains a pop symbol or pop scoped symbol node, but the symbol at the top of the symbol stack does not match.

§

IncorrectSourceNode

The path contains an edge whose source node does not match the sink node of the preceding edge.

§

MissingAttachedScopeList

The path contains a pop scoped symbol node, but the symbol at the top of the symbol stack does not have an attached scope list to pop off.

§

ScopeStackUnsatisfied

The path’s scope stack does not satisfy the partial path’s scope stack precondition.

§

SymbolStackUnsatisfied

The path’s symbol stack does not satisfy the partial path’s symbol stack precondition.

§

UnboundSymbolStackVariable

The partial path’s postcondition references a symbol stack variable that isn’t present in the precondition.

§

UnboundScopeStackVariable

The partial path’s postcondition references a scope stack variable that isn’t present in the precondition.

§

UnexpectedAttachedScopeList

The path contains a pop symbol node, but the symbol at the top of the symbol stack has an attached scope list that we weren’t expecting.

§

UnknownAttachedScope

A push scoped symbol node referes to an exported scope node that doesn’t exist.

Trait Implementations§

Formats the value using the given formatter. Read more

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
Converts self into T using Into<T>. Read more
Causes self to use its Binary implementation when Debug-formatted.
Causes self to use its Display implementation when Debug-formatted.
Causes self to use its LowerExp implementation when Debug-formatted.
Causes self to use its LowerHex implementation when Debug-formatted.
Causes self to use its Octal implementation when Debug-formatted.
Causes self to use its Pointer implementation when Debug-formatted.
Causes self to use its UpperExp implementation when Debug-formatted.
Causes self to use its UpperHex implementation when Debug-formatted.
Formats each item in a sequence. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Pipes by value. This is generally the method you want to use. Read more
Borrows self and passes that borrow into the pipe function. Read more
Mutably borrows self and passes that borrow into the pipe function. Read more
Borrows self, then passes self.borrow() into the pipe function. Read more
Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Borrows self, then passes self.as_ref() into the pipe function.
Mutably borrows self, then passes self.as_mut() into the pipe function.
Borrows self, then passes self.deref() into the pipe function.
Mutably borrows self, then passes self.deref_mut() into the pipe function.
Immutable access to a value. Read more
Mutable access to a value. Read more
Immutable access to the Borrow<B> of a value. Read more
Mutable access to the BorrowMut<B> of a value. Read more
Immutable access to the AsRef<R> view of a value. Read more
Mutable access to the AsMut<R> view of a value. Read more
Immutable access to the Deref::Target of a value. Read more
Mutable access to the Deref::Target of a value. Read more
Calls .tap() only in debug builds, and is erased in release builds.
Calls .tap_mut() only in debug builds, and is erased in release builds.
Calls .tap_borrow() only in debug builds, and is erased in release builds.
Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Calls .tap_ref() only in debug builds, and is erased in release builds.
Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Calls .tap_deref() only in debug builds, and is erased in release builds.
Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Attempts to convert self into T using TryInto<T>. 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.