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§
source§impl<'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<'_> ⓘ
pub fn iter(&self) -> StatusIter<'_> ⓘ
Returns an iterator over the statuses in this list.
Trait Implementations§
Auto Trait Implementations§
impl<'repo> Freeze for Statuses<'repo>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more