pub enum WorktreeMode {
Off,
Create,
Existing,
}Expand description
Session git-worktree mode (--worktree).
Variants§
Off
Create
Create a fresh worktree (base ref via
MuseExecBuilder::worktree_base, default HEAD).
Existing
Use an existing worktree (path via
MuseExecBuilder::worktree_existing).
Trait Implementations§
Source§impl Clone for WorktreeMode
impl Clone for WorktreeMode
Source§fn clone(&self) -> WorktreeMode
fn clone(&self) -> WorktreeMode
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 moreimpl Copy for WorktreeMode
Source§impl Debug for WorktreeMode
impl Debug for WorktreeMode
impl Eq for WorktreeMode
Source§impl PartialEq for WorktreeMode
impl PartialEq for WorktreeMode
impl StructuralPartialEq for WorktreeMode
Auto Trait Implementations§
impl Freeze for WorktreeMode
impl RefUnwindSafe for WorktreeMode
impl Send for WorktreeMode
impl Sync for WorktreeMode
impl Unpin for WorktreeMode
impl UnsafeUnpin for WorktreeMode
impl UnwindSafe for WorktreeMode
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