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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more