pub enum SelectionMode {
CurrentPackage,
DefaultMembers,
WholeWorkspace,
ExplicitPackages(Vec<String>),
}Expand description
Selection mode the user requested.
Variants§
CurrentPackage
Default behavior:
- inside a single-package package (no
[workspace]), select the root package; - at a workspace root, select
[workspace.default-members]when present, otherwise fall back to all workspace members. The fallback rule is documented indocs/workspaces.md.
DefaultMembers
--default-members. Errors when the workspace declares no
[workspace.default-members].
WholeWorkspace
--workspace. Selects every workspace member, then applies
--exclude filtering.
ExplicitPackages(Vec<String>)
-p / --package. Selects exactly the named packages (each
must be a workspace member).
Trait Implementations§
Source§impl Clone for SelectionMode
impl Clone for SelectionMode
Source§fn clone(&self) -> SelectionMode
fn clone(&self) -> SelectionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectionMode
impl Debug for SelectionMode
Source§impl PartialEq for SelectionMode
impl PartialEq for SelectionMode
Source§fn eq(&self, other: &SelectionMode) -> bool
fn eq(&self, other: &SelectionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SelectionMode
impl StructuralPartialEq for SelectionMode
Auto Trait Implementations§
impl Freeze for SelectionMode
impl RefUnwindSafe for SelectionMode
impl Send for SelectionMode
impl Sync for SelectionMode
impl Unpin for SelectionMode
impl UnsafeUnpin for SelectionMode
impl UnwindSafe for SelectionMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.