Trait dependency_graph::Node[][src]

pub trait Node {
    type DependencyType;
    fn dependencies(&self) -> &[Self::DependencyType];
fn matches(&self, dependency: &Self::DependencyType) -> bool; }
Expand description

The Node trait must be implemented by the type you wish to build a dependency graph for. See the README.md for an example

Associated Types

This is the type which encodes a dependency relationship.

Required methods

Returns a slice of dependencies for this Node

Returns true if the dependency can be met by us.

Implementors