Struct cargo::util::graph::Graph
[−]
[src]
pub struct Graph<N> { /* fields omitted */ }
Methods
impl<N: Eq + Hash + Clone> Graph<N>
[src]
fn new() -> Graph<N>
[src]
fn add(&mut self, node: N, children: &[N])
[src]
fn link(&mut self, node: N, child: N)
[src]
fn get_nodes(&self) -> &HashMap<N, HashSet<N>>
[src]
fn edges(&self, node: &N) -> Option<Edges<N>>
[src]
fn sort(&self) -> Option<Vec<N>>
[src]
fn iter(&self) -> Nodes<N>
[src]
Trait Implementations
impl<N: Display + Eq + Hash> Debug for Graph<N>
[src]
impl<N: Eq + Hash> PartialEq for Graph<N>
[src]
fn eq(&self, other: &Graph<N>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.