pub struct WorktreeCreatePartial { /* private fields */ }Expand description
Partial WorktreeCreate — carries the path and new-branch name; chain
base to name the ref it forks from.
Implementations§
Source§impl WorktreeCreatePartial
impl WorktreeCreatePartial
Sourcepub fn base(self, base: impl Into<String>) -> WorktreeCreate
pub fn base(self, base: impl Into<String>) -> WorktreeCreate
The ref the new worktree/workspace forks from — a branch, tag, or commit
(git HEAD; jj @ / a change id). Required and explicit: it has no default
because the sentinel for “current” differs by backend.
Trait Implementations§
Source§impl Clone for WorktreeCreatePartial
impl Clone for WorktreeCreatePartial
Source§fn clone(&self) -> WorktreeCreatePartial
fn clone(&self) -> WorktreeCreatePartial
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 WorktreeCreatePartial
impl RefUnwindSafe for WorktreeCreatePartial
impl Send for WorktreeCreatePartial
impl Sync for WorktreeCreatePartial
impl Unpin for WorktreeCreatePartial
impl UnsafeUnpin for WorktreeCreatePartial
impl UnwindSafe for WorktreeCreatePartial
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