Struct x_core::WorkspaceSubset[][src]

pub struct WorkspaceSubset<'g> { /* fields omitted */ }

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.