pub enum Packages {
Default,
All,
OptOut(Vec<String>),
Packages(Vec<String>),
}Variants§
Implementations§
Source§impl Packages
impl Packages
pub fn from_flags( all: bool, exclude: Vec<String>, package: Vec<String>, ) -> CargoResult<Self>
pub fn to_package_id_specs( &self, ws: &Workspace<'_>, ) -> CargoResult<Vec<PackageIdSpec>>
pub fn get_packages<'ws>( &self, ws: &'ws Workspace<'_>, ) -> CargoResult<Vec<&'ws Package>>
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 StructuralPartialEq for Packages
Auto Trait Implementations§
impl Freeze for Packages
impl RefUnwindSafe for Packages
impl Send for Packages
impl Sync for Packages
impl Unpin for Packages
impl UnsafeUnpin for Packages
impl UnwindSafe for Packages
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more