pub struct Branch<'a>(_);
Implementations
sourceimpl Branch<'_>
impl Branch<'_>
pub fn commit(&self) -> Result<Commit<'_>, 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>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more