pub struct TreeInputs<'a> {
pub graph: &'a PackageGraph,
pub roots: &'a [usize],
pub lockfile: Option<&'a Lockfile>,
pub active_patches: Option<&'a ActivePatchSet>,
pub kind_filter: Option<DependencyKind>,
}Expand description
Per-call options for build_tree. Mirrors the same
dependency-kind filter cabin tree --kind ... exposes, plus
the optional Lockfile / patch / vendor / source-replacement
inputs used to color provenance.
Fields§
§graph: &'a PackageGraphResolved package graph.
roots: &'a [usize]Indices of packages the user selected as roots. Children are walked from these. Empty falls back to the graph’s primary set so callers do not have to special-case “no selection” themselves.
lockfile: Option<&'a Lockfile>Optional lockfile contributing version-pinned checksums to the provenance label.
active_patches: Option<&'a ActivePatchSet>Active patch entries. Patched packages are flagged
with SourceProvenance::Patched regardless of the
lockfile.
kind_filter: Option<DependencyKind>Restrict the walk to a single dependency-kind edge.
None walks every kind the graph carries.
Auto Trait Implementations§
impl<'a> Freeze for TreeInputs<'a>
impl<'a> RefUnwindSafe for TreeInputs<'a>
impl<'a> Send for TreeInputs<'a>
impl<'a> Sync for TreeInputs<'a>
impl<'a> Unpin for TreeInputs<'a>
impl<'a> UnsafeUnpin for TreeInputs<'a>
impl<'a> UnwindSafe for TreeInputs<'a>
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