[][src]Struct git2::References

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

An iterator over the references in a repository.

Methods

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

Important traits for ReferenceNames<'repo, 'references>
pub fn names<'a>(&'a mut self) -> ReferenceNames<'repo, 'a>[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> !Send for References<'repo>

impl<'repo> !Sync for References<'repo>

impl<'repo> Unpin for References<'repo>

impl<'repo> UnwindSafe for References<'repo>

impl<'repo> RefUnwindSafe for References<'repo>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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