[][src]Enum git_trim::ClassifiedBranch

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)
MergedRemoteTracking(RemoteTrackingBranch)
DivergedRemoteTracking

Fields of DivergedRemoteTracking

local: LocalBranchupstream: RemoteTrackingBranch
MergedDirectFetch

Fields of MergedDirectFetch

local: LocalBranchremote: RemoteBranch
DivergedDirectFetch

Fields of DivergedDirectFetch

local: LocalBranchremote: RemoteBranch
MergedNonTrackingLocal(LocalBranch)
MergedNonUpstreamRemoteTracking(RemoteTrackingBranch)

Implementations

impl ClassifiedBranch[src]

pub fn local(&self) -> Option<&LocalBranch>[src]

pub fn upstream(&self) -> Option<&RemoteTrackingBranch>[src]

pub fn remote(&self, repo: &Repository) -> Result<Option<RemoteBranch>>[src]

pub fn message_local(&self) -> String[src]

pub fn message_remote(&self) -> String[src]

Trait Implementations

impl Clone for ClassifiedBranch[src]

impl Debug for ClassifiedBranch[src]

impl Eq for ClassifiedBranch[src]

impl Hash for ClassifiedBranch[src]

impl PartialEq<ClassifiedBranch> for ClassifiedBranch[src]

impl StructuralEq for ClassifiedBranch[src]

impl StructuralPartialEq for ClassifiedBranch[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,