pub struct DependencyGraphResolution {
pub roots: Vec<String>,
pub nodes: Vec<DependencyGraphNode>,
pub edges: Vec<DependencyGraphEdge>,
pub diagnostics: Vec<DependencyGraphDiagnostic>,
}Expand description
What: Return the bounded, deterministic output of one metadata graph-resolution run.
Inputs:
- Root package references, injected metadata, and graph resolution bounds.
Output:
- Contains lexical roots, nodes, edges, and structured diagnostics.
Details:
- The graph is independent from tree rendering and remains useful when metadata failures leave partial branches unresolved.
Fields§
§roots: Vec<String>Requested root package names in lexical order.
nodes: Vec<DependencyGraphNode>Resolved and missing nodes in lexical order by actual package name.
edges: Vec<DependencyGraphEdge>Directed edges in lexical order.
diagnostics: Vec<DependencyGraphDiagnostic>Non-fatal diagnostic events in lexical order.
Implementations§
Source§impl DependencyGraphResolution
impl DependencyGraphResolution
Sourcepub fn render_tree(&self) -> String
pub fn render_tree(&self) -> String
What: Render an already-resolved graph as a stable plain-text dependency tree.
Inputs:
self: A graph result returned byDependencyResolver::resolve_graph.
Output:
- Returns a deterministic newline-terminated tree without performing metadata resolution.
Details:
- Children are lexical, shared subgraphs are shown under each parent, and active-path cycles
use
↺rather than recursing indefinitely. Rendering does not mutate graph state.
Trait Implementations§
Source§impl Clone for DependencyGraphResolution
impl Clone for DependencyGraphResolution
Source§fn clone(&self) -> DependencyGraphResolution
fn clone(&self) -> DependencyGraphResolution
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 DependencyGraphResolution
impl Debug for DependencyGraphResolution
Source§impl Default for DependencyGraphResolution
impl Default for DependencyGraphResolution
Source§fn default() -> DependencyGraphResolution
fn default() -> DependencyGraphResolution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DependencyGraphResolution
impl<'de> Deserialize<'de> for DependencyGraphResolution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DependencyGraphResolution
impl StructuralPartialEq for DependencyGraphResolution
Auto Trait Implementations§
impl Freeze for DependencyGraphResolution
impl RefUnwindSafe for DependencyGraphResolution
impl Send for DependencyGraphResolution
impl Sync for DependencyGraphResolution
impl Unpin for DependencyGraphResolution
impl UnsafeUnpin for DependencyGraphResolution
impl UnwindSafe for DependencyGraphResolution
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.