pub struct Item { /* private fields */ }Expand description
One worktree, or a local branch with no worktree, and what the plan does with it. Only plan
and plan_worktree make one, and a caller can read but never change it, so execute only
ever removes what the plan judged safe:
ⓘ
plan.items()[0].action = Action::Remove;Implementations§
Source§impl Item
impl Item
Sourcepub fn deletes_branch(&self) -> bool
pub fn deletes_branch(&self) -> bool
Whether removing it also deletes its branch, which it does only when every worktree on that branch goes
Sourcepub fn discards_changes(&self) -> bool
pub fn discards_changes(&self) -> bool
Whether removing it drops edits or untracked files, which only Options::force allows
Trait Implementations§
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Itemwhere
RawVecInner: Send,
impl Sync for Itemwhere
RawVecInner: Sync,
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Itemwhere
RawVecInner: UnwindSafe,
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