pub struct WorkspaceSubset<'g> { /* private fields */ }
Expand description
Information collected about a subset of members of a workspace.
Some subsets of this workspace have special properties that are enforced through linters.
Implementations§
Source§impl<'g> WorkspaceSubset<'g>
impl<'g> WorkspaceSubset<'g>
Sourcepub fn new<'a>(
initial_packages: &PackageSet<'g>,
feature_filter: impl FeatureFilter<'g>,
cargo_opts: &CargoOptions<'_>,
) -> Self
pub fn new<'a>( initial_packages: &PackageSet<'g>, feature_filter: impl FeatureFilter<'g>, cargo_opts: &CargoOptions<'_>, ) -> Self
Creates a new subset by simulating a Cargo build on the specified workspace paths, with the given feature filter.
Sourcepub fn initials(&self) -> &FeatureSet<'g>
pub fn initials(&self) -> &FeatureSet<'g>
Returns the initial members that this subset was constructed from.
Sourcepub fn status_of(&self, package_id: &PackageId) -> WorkspaceStatus
pub fn status_of(&self, package_id: &PackageId) -> WorkspaceStatus
Returns the status of the given package ID in the subset.
Sourcepub fn root_members<'a>(
&'a self,
) -> impl Iterator<Item = PackageMetadata<'g>> + 'a
pub fn root_members<'a>( &'a self, ) -> impl Iterator<Item = PackageMetadata<'g>> + 'a
Returns a list of root packages in this subset, ignoring transitive dependencies.
Trait Implementations§
Source§impl<'g> Clone for WorkspaceSubset<'g>
impl<'g> Clone for WorkspaceSubset<'g>
Source§fn clone(&self) -> WorkspaceSubset<'g>
fn clone(&self) -> WorkspaceSubset<'g>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'g> Freeze for WorkspaceSubset<'g>
impl<'g> RefUnwindSafe for WorkspaceSubset<'g>
impl<'g> Send for WorkspaceSubset<'g>
impl<'g> Sync for WorkspaceSubset<'g>
impl<'g> Unpin for WorkspaceSubset<'g>
impl<'g> UnwindSafe for WorkspaceSubset<'g>
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<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
Source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
Source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.