pub struct Graph { /* private fields */ }Expand description
The extracted dependency graph.
Edges are ordered by normalized (source, target). Parallel edges are merged and their import
kinds are unioned, so every endpoint pair occurs at most once.
Implementations§
Source§impl Graph
impl Graph
Sourcepub fn from_edges(edges: impl IntoIterator<Item = Edge>) -> Self
pub fn from_edges(edges: impl IntoIterator<Item = Edge>) -> Self
Creates a deterministic graph and merges parallel endpoint pairs.
If inconsistent callers describe one endpoint pair as both internal and external, the internal classification wins. Same-source pairs become canonical marker self-edges.
Trait Implementations§
Source§impl FromIterator<Edge> for Graph
impl FromIterator<Edge> for Graph
Source§impl<'a> IntoIterator for &'a Graph
impl<'a> IntoIterator for &'a Graph
Source§impl IntoIterator for Graph
impl IntoIterator for Graph
impl Eq for Graph
impl StructuralPartialEq for Graph
Auto Trait Implementations§
impl Freeze for Graph
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.