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>
fn add(&mut self, node: N, children: &[N])
fn link(&mut self, node: N, child: N)
fn get_nodes(&self) -> &HashMap<N, HashSet<N>>
fn edges(&self, node: &N) -> Option<Edges<N>>
fn sort(&self) -> Option<Vec<N>>
fn iter(&self) -> Nodes<N>
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
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
This method tests for !=
.
impl<N: Eq + Hash> Eq for Graph<N>
[src]
impl<N: Eq + Hash + Clone> Clone for Graph<N>
[src]
fn clone(&self) -> Graph<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more