pub struct BranchRestorer<'a> { /* private fields */ }
Expand description
Restores the current git branch when dropped Assumes we are on a real branch
Implementations§
Source§impl BranchRestorer<'_>
impl BranchRestorer<'_>
pub fn new(repo: &Repository) -> BranchRestorer<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BranchRestorer<'a>
impl<'a> RefUnwindSafe for BranchRestorer<'a>
impl<'a> Send for BranchRestorer<'a>
impl<'a> Sync for BranchRestorer<'a>
impl<'a> Unpin for BranchRestorer<'a>
impl<'a> UnwindSafe for BranchRestorer<'a>
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