[][src]Struct git2::Statuses

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

A container for a list of status information about a repository.

Each instance appears as if it were a collection, having a length and allowing indexing, as well as providing an iterator.

Methods

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

pub fn get(&self, index: usize) -> Option<StatusEntry>[src]

Gets a status entry from this list at the specified index.

Returns None if the index is out of bounds.

pub fn len(&self) -> usize[src]

Gets the count of status entries in this list.

If there are no changes in status (according to the options given when the status list was created), this should return 0.

pub fn is_empty(&self) -> bool[src]

Return true if there is no status entry in this list.

Important traits for StatusIter<'a>
pub fn iter(&self) -> StatusIter[src]

Returns an iterator over the statuses in this list.

Trait Implementations

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

Auto Trait Implementations

impl<'repo> !Send for Statuses<'repo>

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

impl<'repo> Unpin for Statuses<'repo>

impl<'repo> UnwindSafe for Statuses<'repo>

impl<'repo> RefUnwindSafe for Statuses<'repo>

Blanket Implementations

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

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

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]