Struct x_core::WorkspaceSubsets [−][src]
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]
graph: &'g PackageGraph,
project_root: &Path,
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
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]
&'a self
) -> impl Iterator<Item = (&'a str, &'a WorkspaceSubset<'g>)> + 'a
Iterate over all named subsets.
Trait Implementations
impl<'g> Clone for WorkspaceSubsets<'g>
[src]
fn clone(&self) -> WorkspaceSubsets<'g>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
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>,