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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.