pub struct Worktree { /* private fields */ }
Implementations§
Source§impl Worktree
impl Worktree
pub fn new(name: &str) -> Self
pub fn name(&self) -> &WorktreeName
pub fn forward_branch( &self, rebase: bool, stash: bool, ) -> Result<Option<Warning>, Error>
pub fn rebase_onto_default( &self, config: &Option<WorktreeRootConfig>, stash: bool, ) -> Result<Option<Warning>, Error>
Auto Trait Implementations§
impl Freeze for Worktree
impl RefUnwindSafe for Worktree
impl Send for Worktree
impl Sync for Worktree
impl Unpin for Worktree
impl UnwindSafe for Worktree
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