Struct solvent::DepGraph [] [src]

pub struct DepGraph<T: Eq> { /* fields omitted */ }

This is the dependency graph. The type T is intended to be a small type, or a reference to a larger type that implements Eq (you will need to supply the type and vectors of the type to functions).

Methods

impl<T: Eq> DepGraph<T>
[src]

[src]

Create an empty DepGraph.

[src]

Register nodes in the graph. The nodes are added to any existing nodes, after checking to avoid duplicates.

[src]

Register a node in the graph. The node is added to any existing nodes, after checking to avoid duplicates.

[src]

Add a dependency to a DepGraph. The node does not need to pre-exist, nor does the dependency node. If the node does pre-exist, the depends_on will be added to its existing dependency list. Otherwise it will be created.

[src]

Add multiple dependencies of one node to a DepGraph. The node does not need to pre-exist, nor does the dependency node. If the node does pre-exist, the depends_on will be added to its existing dependency list. Otherwise it will be created.

[src]

This marks a node as satisfied. Iterators will not output such nodes. Nodes must exist.

[src]

Get an iterator to iterate through the dependencies of the target node. Target node must exist.

Trait Implementations

impl<T: Debug + Eq> Debug for DepGraph<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Clone + Eq> Clone for DepGraph<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more