[go: up one dir, main page]

Struct git2::PathspecMatchList[][src]

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

List of filenames matching a pathspec.

Implementations

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

pub fn entries(&self) -> PathspecEntries<'_>

Notable traits for PathspecEntries<'list>

impl<'list> Iterator for PathspecEntries<'list> type Item = &'list [u8];
[src]

Returns an iterator over the matching filenames in this list.

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

Get a matching filename by position.

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

pub fn diff_entries(&self) -> PathspecDiffEntries<'_>

Notable traits for PathspecDiffEntries<'list>

impl<'list> Iterator for PathspecDiffEntries<'list> type Item = DiffDelta<'list>;
[src]

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

pub fn diff_entry(&self, i: usize) -> Option<DiffDelta<'_>>[src]

Get a matching diff delta by position.

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

pub fn failed_entries(&self) -> PathspecFailedEntries<'_>

Notable traits for PathspecFailedEntries<'list>

impl<'list> Iterator for PathspecFailedEntries<'list> type Item = &'list [u8];
[src]

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

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

Get an original pathspec string that had no matches.

Trait Implementations

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

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.