pub enum CleanAction {
Remove(Vec<Target>),
RemoveSelf,
Run(Arc<str>),
RemoveStaleWorktrees,
}Expand description
What a rule reclaims once its markers have matched.
Variants§
Remove(Vec<Target>)
Reclaim these paths from inside the matched directory.
RemoveSelf
Reclaim the matched directory itself.
This is what makes self-describing artifacts expressible: a Python virtual
environment is identified by the pyvenv.cfg it contains, not by anything
beside it, so no sibling-only rule can name it.
Run(Arc<str>)
Run the project’s own clean command in the matched directory.
RemoveStaleWorktrees
Reclaim the administrative directories of git worktrees that no longer exist.
This is what git worktree prune removes. It needs to read each record’s gitdir
pointer and check whether the checkout is still there, which no glob can express.
Trait Implementations§
Source§impl Clone for CleanAction
impl Clone for CleanAction
Source§fn clone(&self) -> CleanAction
fn clone(&self) -> CleanAction
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 moreAuto Trait Implementations§
impl Freeze for CleanAction
impl RefUnwindSafe for CleanAction
impl Send for CleanAction
impl Sync for CleanAction
impl Unpin for CleanAction
impl UnsafeUnpin for CleanAction
impl UnwindSafe for CleanAction
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