pub struct ResolvedSelection {
pub packages: Vec<usize>,
}Expand description
Final, validated selection. Indices are into PackageGraph::packages
and are ordered to match the graph’s primary-package ordering.
Fields§
§packages: Vec<usize>Implementations§
Source§impl ResolvedSelection
impl ResolvedSelection
Sourcepub fn closure(&self, graph: &PackageGraph) -> BTreeSet<usize>
pub fn closure(&self, graph: &PackageGraph) -> BTreeSet<usize>
Closure of the selection over local
path-dependency edges. Includes every package reachable from
self.packages by walking WorkspacePackage::deps transitively, in
deterministic ascending-index order. Workspace siblings that
the selection neither names nor pulls in via path deps are
not in the closure — that is the whole point of this
helper.
Sourcepub fn closure_package_names(&self, graph: &PackageGraph) -> BTreeSet<String>
pub fn closure_package_names(&self, graph: &PackageGraph) -> BTreeSet<String>
Names of every package in the selection’s path-dependency
closure, in deterministic order. Convenience
over closure(graph) for the common case where a caller needs a
set of package names — e.g. to seed a strict registry / port
policy — rather than graph indices.
Trait Implementations§
Source§impl Clone for ResolvedSelection
impl Clone for ResolvedSelection
Source§fn clone(&self) -> ResolvedSelection
fn clone(&self) -> ResolvedSelection
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 ResolvedSelection
impl Debug for ResolvedSelection
Source§impl PartialEq for ResolvedSelection
impl PartialEq for ResolvedSelection
Source§fn eq(&self, other: &ResolvedSelection) -> bool
fn eq(&self, other: &ResolvedSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResolvedSelection
impl StructuralPartialEq for ResolvedSelection
Auto Trait Implementations§
impl Freeze for ResolvedSelection
impl RefUnwindSafe for ResolvedSelection
impl Send for ResolvedSelection
impl Sync for ResolvedSelection
impl Unpin for ResolvedSelection
impl UnsafeUnpin for ResolvedSelection
impl UnwindSafe for ResolvedSelection
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.