[][src]Trait dep_graph::Node

pub trait Node: Clone + Send + Sync + 'static {
    type Inner: Clone + Debug + Display + Eq + Hash + PartialEq + Send + Sync + 'static;
    fn id(&self) -> &Self::Inner;
fn deps(&self) -> &HashSet<Self::Inner>;
fn add_dep(&mut self, dep: &Self::Inner); }

Single node in a dependency graph, which might have dependencies or be be used as a dependency by other nodes.

A node is represented by a unique identifier and may contain a list of dependencies.

Associated Types

type Inner: Clone + Debug + Display + Eq + Hash + PartialEq + Send + Sync + 'static

Loading content...

Required methods

fn id(&self) -> &Self::Inner

Node identifer

This value should be used to identify this node by the nodes that depend on it.

fn deps(&self) -> &HashSet<Self::Inner>

fn add_dep(&mut self, dep: &Self::Inner)

Loading content...

Implementors

impl Node for StrNode[src]

type Inner = String

Loading content...