pub struct DependencyEdge {
pub index: usize,
pub kind: DependencyKind,
pub condition: Option<Condition>,
}Expand description
A single resolved package-dependency edge in the package graph.
The graph only contains edges that could be active on the
evaluation platform (the loader filters out non-matching
[target.'cfg(...)'.<kind>] entries before constructing the
graph), so consumers never need to re-check the condition
against a different platform — the loader already did. The
edge still records the originating condition for diagnostics
and metadata.
Fields§
§index: usizeIndex of the depended-on package in PackageGraph::packages.
kind: DependencyKindWhich manifest section this edge was declared under.
condition: Option<Condition>Some when this edge originated from a
[target.'cfg(...)'.<kind>] table that matched the
evaluation platform; None for unconditional edges.
Trait Implementations§
Source§impl Clone for DependencyEdge
impl Clone for DependencyEdge
Source§fn clone(&self) -> DependencyEdge
fn clone(&self) -> DependencyEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyEdge
impl Debug for DependencyEdge
Source§impl PartialEq for DependencyEdge
impl PartialEq for DependencyEdge
Source§fn eq(&self, other: &DependencyEdge) -> bool
fn eq(&self, other: &DependencyEdge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DependencyEdge
impl StructuralPartialEq for DependencyEdge
Auto Trait Implementations§
impl Freeze for DependencyEdge
impl RefUnwindSafe for DependencyEdge
impl Send for DependencyEdge
impl Sync for DependencyEdge
impl Unpin for DependencyEdge
impl UnsafeUnpin for DependencyEdge
impl UnwindSafe for DependencyEdge
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.