Struct git2::PathspecMatchList [] [src]

pub struct PathspecMatchList<'ps> {
    // some fields omitted
}

List of filenames matching a pathspec.

Methods

impl<'ps> PathspecMatchList<'ps>
[src]

fn entries(&self) -> PathspecEntries

Returns an iterator over the matching filenames in this list.

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.

fn diff_entries(&self) -> PathspecDiffEntries

Returns an iterator over the matching diff entries in this list.

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.

fn failed_entries(&self) -> PathspecFailedEntries

Returns an iterator over the non-matching entries in this list.

fn failed_entry(&self, i: usize) -> Option<&[u8]>

Get an original pathspec string that had no matches.

Trait Implementations

impl<'ps> Drop for PathspecMatchList<'ps>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more