Struct x_core::WorkspaceSubset
source · 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 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 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§
§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