Struct ethers_solc::resolver::Graph

source ·
pub struct Graph { /* private fields */ }
Expand description

Represents a fully-resolved solidity dependency graph. Each node in the graph is a file and edges represent dependencies between them. See also https://docs.soliditylang.org/en/latest/layout-of-source-files.html?highlight=import#importing-other-source-files

Implementations§

Print the graph to StdOut

Print the graph to StdOut using the provided TreeOptions

Returns a list of nodes the given node index points to for the given kind.

Returns an iterator that yields all imports of a node and all their imports

Returns all the resolved files and their index in the graph

Gets a node by index.

Panics

if the index node id is not included in the graph

Returns an iterator that yields all nodes of the dependency tree that the given node id spans, starting with the node itself.

Panics

if the start node id is not included in the graph

Same as Self::node_ids but returns the actual Node

Consumes the Graph, effectively splitting the nodes and the GraphEdges off and returning the nodes converted to Sources

Returns an iterator that yields only those nodes that represent input files. See Self::resolve_sources This won’t yield any resolved library nodes

Returns all files imported by the given file

Resolves a number of sources within the given config

Resolves the dependencies of a project’s source contracts

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

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
Should always be Self
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more