pub struct PathspecMatchList<'ps> { /* private fields */ }
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.

source

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.

source

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.