Variants
Default
All
OptOut(Vec<String>)
Packages(Vec<String>)
Implementations
sourceimpl Packages
impl Packages
pub fn from_flags(
all: bool,
exclude: Vec<String>,
package: Vec<String>
) -> CargoResult<Self>
sourcepub fn to_package_id_specs(
&self,
ws: &Workspace<'_>
) -> CargoResult<Vec<PackageIdSpec>>
pub fn to_package_id_specs(
&self,
ws: &Workspace<'_>
) -> CargoResult<Vec<PackageIdSpec>>
Converts selected packages from a workspace to PackageIdSpec
s.
sourcepub fn get_packages<'ws>(
&self,
ws: &'ws Workspace<'_>
) -> CargoResult<Vec<&'ws Package>>
pub fn get_packages<'ws>(
&self,
ws: &'ws Workspace<'_>
) -> CargoResult<Vec<&'ws Package>>
Gets a list of selected packages from a workspace.
sourcepub fn needs_spec_flag(&self, ws: &Workspace<'_>) -> bool
pub fn needs_spec_flag(&self, ws: &Workspace<'_>) -> bool
Returns whether or not the user needs to pass a -p
flag to target a
specific package in the workspace.
Trait Implementations
impl Eq for Packages
impl StructuralEq for Packages
impl StructuralPartialEq for Packages
Auto Trait Implementations
impl RefUnwindSafe for Packages
impl Send for Packages
impl Sync for Packages
impl Unpin for Packages
impl UnwindSafe for Packages
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more