Struct x_core::WorkspaceSubset [−][src]
Information collected about a subset of members of a workspace.
Some subsets of this workspace have special properties that are enforced through linters.
Implementations
impl<'g> WorkspaceSubset<'g>
[src]
pub fn new<'a>(
initial_packages: &PackageSet<'g>,
feature_filter: impl FeatureFilter<'g>,
cargo_opts: &CargoOptions<'_>
) -> Self
[src]
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.
pub fn initials(&self) -> &FeatureSet<'g>
[src]
Returns the initial members that this subset was constructed from.
pub fn status_of(&self, package_id: &PackageId) -> WorkspaceStatus
[src]
Returns the status of the given package ID in the subset.
pub fn root_members<'a>(
&'a self
) -> impl Iterator<Item = PackageMetadata<'g>> + 'a
[src]
&'a self
) -> impl Iterator<Item = PackageMetadata<'g>> + 'a
Returns a list of root packages in this subset, ignoring transitive dependencies.
pub fn build_set(&self) -> &CargoSet<'g>
[src]
Returns the set of packages and features that would be built from this subset.
This contains information about transitive dependencies, both within the workspace and outside it.
Trait Implementations
impl<'g> Clone for WorkspaceSubset<'g>
[src]
fn clone(&self) -> WorkspaceSubset<'g>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'g> Debug for WorkspaceSubset<'g>
[src]
Auto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,