Skip to main content

TreeInputs

Struct TreeInputs 

Source
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 PackageGraph

Resolved 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V