[][src]Struct git2::References

pub struct References<'repo> { /* fields omitted */ }

An iterator over the references in a repository.

Implementations

impl<'repo> References<'repo>[src]

pub fn names<'a>(&'a mut self) -> ReferenceNames<'repo, 'a>

Notable traits for ReferenceNames<'repo, 'references>

impl<'repo, 'references> Iterator for ReferenceNames<'repo, 'references> type Item = Result<&'references str, Error>;
[src]

Consumes a References iterator to create an iterator over just the name of some references.

This is more efficient if only the names are desired of references as the references themselves don't have to be allocated and deallocated.

The returned iterator will yield strings as opposed to a Reference.

Trait Implementations

impl<'repo> Drop for References<'repo>[src]

impl<'repo> Iterator for References<'repo>[src]

type Item = Result<Reference<'repo>, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'repo> RefUnwindSafe for References<'repo>[src]

impl<'repo> !Send for References<'repo>[src]

impl<'repo> !Sync for References<'repo>[src]

impl<'repo> Unpin for References<'repo>[src]

impl<'repo> UnwindSafe for References<'repo>[src]

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.