pub struct Branch<'a>(/* private fields */);
Implementations§
Source§impl<'a> Branch<'a>
impl<'a> Branch<'a>
pub fn commit(&self) -> Result<Commit<'_>, Error>
pub fn commit_owned(self) -> Result<Commit<'a>, Error>
pub fn set_upstream( &mut self, remote_name: &RemoteName, branch_name: &BranchName, ) -> Result<(), Error>
pub fn name(&self) -> Result<BranchName, Error>
pub fn upstream(&self) -> Result<Branch<'_>, Error>
pub fn delete(self) -> Result<(), Error>
pub fn basename(&self) -> Result<BranchName, Error>
Auto Trait Implementations§
impl<'a> Freeze for Branch<'a>
impl<'a> RefUnwindSafe for Branch<'a>
impl<'a> !Send for Branch<'a>
impl<'a> !Sync for Branch<'a>
impl<'a> Unpin for Branch<'a>
impl<'a> UnwindSafe for Branch<'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