pub struct Statuses<'repo> { /* private fields */ }
Expand description
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.
Implementations
sourceimpl<'repo> Statuses<'repo>
impl<'repo> Statuses<'repo>
sourcepub fn get(&self, index: usize) -> Option<StatusEntry<'_>>
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.
sourcepub fn len(&self) -> usize
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.
sourcepub fn iter(&self) -> StatusIter<'_>ⓘNotable traits for StatusIter<'a>impl<'a> Iterator for StatusIter<'a> type Item = StatusEntry<'a>;
pub fn iter(&self) -> StatusIter<'_>ⓘNotable traits for StatusIter<'a>impl<'a> Iterator for StatusIter<'a> type Item = StatusEntry<'a>;
Returns an iterator over the statuses in this list.
Trait Implementations
Auto Trait Implementations
impl<'repo> RefUnwindSafe for Statuses<'repo>
impl<'repo> !Send for Statuses<'repo>
impl<'repo> !Sync for Statuses<'repo>
impl<'repo> Unpin for Statuses<'repo>
impl<'repo> UnwindSafe for Statuses<'repo>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more