pub struct Branch<'a>(/* private fields */);
Implementations§
Source§impl<'a> Branch<'a>
impl<'a> Branch<'a>
pub fn commit(&self) -> Result<Commit<'_>, String>
pub fn commit_owned(self) -> Result<Commit<'a>, String>
pub fn set_upstream( &mut self, remote_name: &str, branch_name: &str, ) -> Result<(), String>
pub fn name(&self) -> Result<String, String>
pub fn upstream(&self) -> Result<Branch<'_>, String>
pub fn delete(self) -> Result<(), String>
pub fn basename(&self) -> Result<String, String>
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