Struct x_core::WorkspaceSubsets[][src]

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

Contains information about all the subsets specified in this workspace.

Implementations

impl<'g> WorkspaceSubsets<'g>[src]

pub fn new(
    graph: &'g PackageGraph,
    project_root: &Path,
    config: &BTreeMap<String, SubsetConfig>
) -> Result<Self>
[src]

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

pub fn default_members(&self) -> &WorkspaceSubset<'g>[src]

Returns information about default members.

pub fn get(&self, name: impl AsRef<str>) -> Option<&WorkspaceSubset<'g>>[src]

Returns information about the subset by name.

pub fn iter<'a>(
    &'a self
) -> impl Iterator<Item = (&'a str, &'a WorkspaceSubset<'g>)> + 'a
[src]

Iterate over all named subsets.

Trait Implementations

impl<'g> Clone for WorkspaceSubsets<'g>[src]

impl<'g> Debug for WorkspaceSubsets<'g>[src]

Auto 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<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.