pub struct LocalBranch {
pub refname: String,
}
Fields§
§refname: String
Implementations§
Source§impl LocalBranch
impl LocalBranch
pub fn new(refname: &str) -> Self
pub fn short_name(&self) -> &str
pub fn fetch_upstream( &self, repo: &Repository, config: &Config, ) -> Result<RemoteTrackingBranchStatus>
Trait Implementations§
Source§impl Clone for LocalBranch
impl Clone for LocalBranch
Source§fn clone(&self) -> LocalBranch
fn clone(&self) -> LocalBranch
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LocalBranch
impl Debug for LocalBranch
Source§impl Hash for LocalBranch
impl Hash for LocalBranch
Source§impl Ord for LocalBranch
impl Ord for LocalBranch
Source§fn cmp(&self, other: &LocalBranch) -> Ordering
fn cmp(&self, other: &LocalBranch) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LocalBranch
impl PartialEq for LocalBranch
Source§impl PartialOrd for LocalBranch
impl PartialOrd for LocalBranch
Source§impl<'repo> TryFrom<&Branch<'repo>> for LocalBranch
impl<'repo> TryFrom<&Branch<'repo>> for LocalBranch
Source§impl<'repo> TryFrom<&Reference<'repo>> for LocalBranch
impl<'repo> TryFrom<&Reference<'repo>> for LocalBranch
impl Eq for LocalBranch
impl StructuralPartialEq for LocalBranch
Auto Trait Implementations§
impl Freeze for LocalBranch
impl RefUnwindSafe for LocalBranch
impl Send for LocalBranch
impl Sync for LocalBranch
impl Unpin for LocalBranch
impl UnwindSafe for LocalBranch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more