Struct git2::PathspecMatchList[][src]

pub struct PathspecMatchList<'ps> { /* fields omitted */ }
Expand description

List of filenames matching a pathspec.

Implementations

Returns an iterator over the matching filenames in this list.

Get a matching filename by position.

If this list was generated from a diff, then the return value will always be `None.

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

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.

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

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

Get an original pathspec string that had no matches.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.