pub struct DependencyEdge {
pub index: usize,
pub kind: DependencyKind,
pub condition: Option<Condition>,
pub ignore_interface_standard: bool,
}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.
ignore_interface_standard: boolWhether the declaration opted this edge out of the
standard-compatibility check with
ignore-interface-standard = true. Per-edge by design;
inert unless the check runs.
Trait Implementations§
Source§impl Clone for DependencyEdge
impl Clone for DependencyEdge
Source§fn clone(&self) -> DependencyEdge
fn clone(&self) -> DependencyEdge
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DependencyEdge
impl Debug for DependencyEdge
impl Eq for DependencyEdge
Source§impl PartialEq for DependencyEdge
impl PartialEq for DependencyEdge
Source§fn eq(&self, other: &DependencyEdge) -> bool
fn eq(&self, other: &DependencyEdge) -> bool
self and other values to be equal, and is used by ==.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
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
key and return true if they are equal.