Struct git_trim::LocalBranch
source · 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<LocalBranch> for LocalBranch
impl PartialEq<LocalBranch> for LocalBranch
source§fn eq(&self, other: &LocalBranch) -> bool
fn eq(&self, other: &LocalBranch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LocalBranch> for LocalBranch
impl PartialOrd<LocalBranch> for LocalBranch
source§fn partial_cmp(&self, other: &LocalBranch) -> Option<Ordering>
fn partial_cmp(&self, other: &LocalBranch) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more