pub struct WorkspaceSubsets<'g> { /* private fields */ }
Expand description
Contains information about all the subsets specified in this workspace.
Implementations§
Source§impl<'g> WorkspaceSubsets<'g>
impl<'g> WorkspaceSubsets<'g>
Sourcepub fn new(
graph: &'g PackageGraph,
project_root: &Path,
config: &BTreeMap<String, SubsetConfig>,
) -> Result<Self>
pub fn new( graph: &'g PackageGraph, project_root: &Path, config: &BTreeMap<String, SubsetConfig>, ) -> Result<Self>
Constructs a new store for workspace subsets.
This is done with respect to a “standard build”, which assumes:
- any platform
- v2 resolver
- no dev dependencies
Sourcepub fn default_members(&self) -> &WorkspaceSubset<'g>
pub fn default_members(&self) -> &WorkspaceSubset<'g>
Returns information about default members.
Sourcepub fn get(&self, name: impl AsRef<str>) -> Option<&WorkspaceSubset<'g>>
pub fn get(&self, name: impl AsRef<str>) -> Option<&WorkspaceSubset<'g>>
Returns information about the subset by name.
Sourcepub fn iter<'a>(
&'a self,
) -> impl Iterator<Item = (&'a str, &'a WorkspaceSubset<'g>)> + 'a
pub fn iter<'a>( &'a self, ) -> impl Iterator<Item = (&'a str, &'a WorkspaceSubset<'g>)> + 'a
Iterate over all named subsets.
Trait Implementations§
Source§impl<'g> Clone for WorkspaceSubsets<'g>
impl<'g> Clone for WorkspaceSubsets<'g>
Source§fn clone(&self) -> WorkspaceSubsets<'g>
fn clone(&self) -> WorkspaceSubsets<'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 WorkspaceSubsets<'g>
impl<'g> RefUnwindSafe for WorkspaceSubsets<'g>
impl<'g> Send for WorkspaceSubsets<'g>
impl<'g> Sync for WorkspaceSubsets<'g>
impl<'g> Unpin for WorkspaceSubsets<'g>
impl<'g> UnwindSafe for WorkspaceSubsets<'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.