[][src]Struct clgit::BranchRef

pub struct BranchRef<'r> { /* fields omitted */ }

A named reference to a commit (e.g. "master" => "074d881e29cc3bff82da905adcde2aea7cb5b165") w/o deep copies

Implementations

impl<'_> BranchRef<'_>[src]

pub fn name(&self) -> &OsStr[src]

Name of the branch (e.g. "master")

pub fn commit(&self) -> &Hash[src]

Hash of the commit this branch points to (e.g. "074d881e29cc3bff82da905adcde2aea7cb5b165")

Trait Implementations

impl<'_> Debug for BranchRef<'_>[src]

Auto Trait Implementations

impl<'r> RefUnwindSafe for BranchRef<'r>

impl<'r> Send for BranchRef<'r>

impl<'r> Sync for BranchRef<'r>

impl<'r> Unpin for BranchRef<'r>

impl<'r> UnwindSafe for BranchRef<'r>

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<T> From<T> for T[src]

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

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.