[−][src]Struct git2::Statuses
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]
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.
ⓘImportant traits for StatusIter<'a>pub fn iter(&self) -> StatusIter
[src]
ⓘImportant traits for StatusIter<'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,
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 = !
The type returned in the event of a conversion error.
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>,