Struct git2::PathspecMatchList
source · pub struct PathspecMatchList<'ps> { /* private fields */ }
Expand description
List of filenames matching a pathspec.
Implementations§
source§impl<'ps> PathspecMatchList<'ps>
impl<'ps> PathspecMatchList<'ps>
sourcepub fn entries(&self) -> PathspecEntries<'_> ⓘ
pub fn entries(&self) -> PathspecEntries<'_> ⓘ
Returns an iterator over the matching filenames in this list.
sourcepub fn entry(&self, i: usize) -> Option<&[u8]>
pub fn entry(&self, i: usize) -> Option<&[u8]>
Get a matching filename by position.
If this list was generated from a diff, then the return value will always be `None.
sourcepub fn diff_entries(&self) -> PathspecDiffEntries<'_> ⓘ
pub fn diff_entries(&self) -> PathspecDiffEntries<'_> ⓘ
Returns an iterator over the matching diff entries in this list.
sourcepub fn diff_entry(&self, i: usize) -> Option<DiffDelta<'_>>
pub fn diff_entry(&self, i: usize) -> Option<DiffDelta<'_>>
Get a matching diff delta by position.
If the list was not generated from a diff, then the return value will
always be None
.
sourcepub fn failed_entries(&self) -> PathspecFailedEntries<'_> ⓘ
pub fn failed_entries(&self) -> PathspecFailedEntries<'_> ⓘ
Returns an iterator over the non-matching entries in this list.
sourcepub fn failed_entry(&self, i: usize) -> Option<&[u8]>
pub fn failed_entry(&self, i: usize) -> Option<&[u8]>
Get an original pathspec string that had no matches.
Trait Implementations§
Auto Trait Implementations§
impl<'ps> Freeze for PathspecMatchList<'ps>
impl<'ps> RefUnwindSafe for PathspecMatchList<'ps>
impl<'ps> !Send for PathspecMatchList<'ps>
impl<'ps> !Sync for PathspecMatchList<'ps>
impl<'ps> Unpin for PathspecMatchList<'ps>
impl<'ps> UnwindSafe for PathspecMatchList<'ps>
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