pub enum ClassifiedBranch {
MergedLocal(LocalBranch),
Stray(LocalBranch),
MergedRemoteTracking(RemoteTrackingBranch),
DivergedRemoteTracking {
local: LocalBranch,
upstream: RemoteTrackingBranch,
},
MergedDirectFetch {
local: LocalBranch,
remote: RemoteBranch,
},
DivergedDirectFetch {
local: LocalBranch,
remote: RemoteBranch,
},
MergedNonTrackingLocal(LocalBranch),
MergedNonUpstreamRemoteTracking(RemoteTrackingBranch),
}
Variants§
MergedLocal(LocalBranch)
Stray(LocalBranch)
MergedRemoteTracking(RemoteTrackingBranch)
DivergedRemoteTracking
MergedDirectFetch
DivergedDirectFetch
MergedNonTrackingLocal(LocalBranch)
MergedNonUpstreamRemoteTracking(RemoteTrackingBranch)
Implementations§
Source§impl ClassifiedBranch
impl ClassifiedBranch
pub fn local(&self) -> Option<&LocalBranch>
pub fn upstream(&self) -> Option<&RemoteTrackingBranch>
pub fn remote(&self, repo: &Repository) -> Result<Option<RemoteBranch>>
pub fn message_local(&self) -> String
pub fn message_remote(&self) -> String
Trait Implementations§
Source§impl Clone for ClassifiedBranch
impl Clone for ClassifiedBranch
Source§fn clone(&self) -> ClassifiedBranch
fn clone(&self) -> ClassifiedBranch
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 ClassifiedBranch
impl Debug for ClassifiedBranch
Source§impl Hash for ClassifiedBranch
impl Hash for ClassifiedBranch
Source§impl PartialEq for ClassifiedBranch
impl PartialEq for ClassifiedBranch
impl Eq for ClassifiedBranch
impl StructuralPartialEq for ClassifiedBranch
Auto Trait Implementations§
impl Freeze for ClassifiedBranch
impl RefUnwindSafe for ClassifiedBranch
impl Send for ClassifiedBranch
impl Sync for ClassifiedBranch
impl Unpin for ClassifiedBranch
impl UnwindSafe for ClassifiedBranch
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