Struct x_core::WorkspaceSubsets
source · 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: &Utf8Path,
config: &BTreeMap<String, SubsetConfig>
) -> Result<Self>
pub fn new( graph: &'g PackageGraph, project_root: &Utf8Path, 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 copy 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> 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§
§impl<'a, T> DefaultFeatures<'a> for Twhere
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for Twhere T: 'a + Send + Sync + Clone,
§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere T: 'a + Clone,
§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.§fn self_address_mut(&mut self) -> *mut ()
fn self_address_mut(&mut self) -> *mut ()
Returns the address of
self
. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more