[][src]Struct ignore::Walk

pub struct Walk { /* fields omitted */ }

Walk is a recursive directory iterator over file paths in one or more directories.

Only file and directory paths matching the rules are returned. By default, ignore files like .gitignore are respected. The precise matching rules and precedence is explained in the documentation for WalkBuilder.

Methods

impl Walk[src]

Important traits for Walk
pub fn new<P: AsRef<Path>>(path: P) -> Walk[src]

Creates a new recursive directory iterator for the file path given.

Note that this uses default settings, which include respecting .gitignore files. To configure the iterator, use WalkBuilder instead.

Trait Implementations

impl Iterator for Walk[src]

type Item = Result<DirEntry, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl !RefUnwindSafe for Walk

impl Send for Walk

impl Sync for Walk

impl Unpin for Walk

impl !UnwindSafe for Walk

Blanket Implementations

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

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

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

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

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.