Struct git2::Statuses [−][src]
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
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.
pub fn iter(&self) -> StatusIter<'_>ⓘNotable traits for StatusIter<'a>
impl<'a> Iterator for StatusIter<'a> type Item = StatusEntry<'a>;
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,