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
type DependencyType
type DependencyType
This is the type which encodes a dependency relationship.
Required methods
fn dependencies(&self) -> &[Self::DependencyType]
fn dependencies(&self) -> &[Self::DependencyType]
Returns a slice of dependencies for this Node
fn matches(&self, dependency: &Self::DependencyType) -> bool
fn matches(&self, dependency: &Self::DependencyType) -> bool
Returns true if the dependency can be met by us.