[][src]Struct git_trim::LocalBranch

pub struct LocalBranch {
    pub refname: String,
}

Fields

refname: String

Implementations

impl LocalBranch[src]

pub fn new(refname: &str) -> Self[src]

pub fn short_name(&self) -> &str[src]

pub fn fetch_upstream(
    &self,
    repo: &Repository,
    config: &Config
) -> Result<RemoteTrackingBranchStatus>
[src]

Trait Implementations

impl Clone for LocalBranch[src]

impl Debug for LocalBranch[src]

impl Eq for LocalBranch[src]

impl Hash for LocalBranch[src]

impl Ord for LocalBranch[src]

impl PartialEq<LocalBranch> for LocalBranch[src]

impl PartialOrd<LocalBranch> for LocalBranch[src]

impl Refname for LocalBranch[src]

impl StructuralEq for LocalBranch[src]

impl StructuralPartialEq for LocalBranch[src]

impl<'repo, '_> TryFrom<&'_ Branch<'repo>> for LocalBranch[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'repo, '_> TryFrom<&'_ Reference<'repo>> for LocalBranch[src]

type Error = Error

The type returned in the event of a conversion error.

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>,