Struct git2::Statuses [−][src]
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]
impl<'repo> Statuses<'repo>
pub fn get(&self, index: usize) -> Option<StatusEntry>
[src]
pub fn get(&self, index: usize) -> Option<StatusEntry>
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]
pub fn len(&self) -> usize
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]
pub fn is_empty(&self) -> bool
Return true
if there is no status entry in this list.
ⓘImportant traits for StatusIter<'a>pub fn iter(&self) -> StatusIter
[src]
ⓘImportant traits for StatusIter<'a>
pub fn iter(&self) -> StatusIter
Returns an iterator over the statuses in this list.