pub enum Force {
Never,
DiscardChanges,
OverrideLock,
}Available on crate feature
worktree-mutation only.Expand description
The amount of validation to bypass when removing a linked worktree.
Variants§
Never
Refuse to remove a locked or dirty worktree or one containing initialized submodules.
DiscardChanges
Discard changes and initialized submodules, but retain locked worktrees.
OverrideLock
Discard changes and initialized submodules, overriding any worktree lock.
Trait Implementations§
impl Copy for Force
impl Eq for Force
impl StructuralPartialEq for Force
Auto Trait Implementations§
impl Forget for Force
impl Freeze for Force
impl Move for Force
impl RefUnwindSafe for Force
impl Send for Force
impl Sync for Force
impl Unpin for Force
impl UnsafeUnpin for Force
impl UnwindSafe for Force
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.