Struct ignore::WalkParallel
source · pub struct WalkParallel { /* private fields */ }
Expand description
WalkParallel is a parallel recursive directory iterator over files 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
.
Unlike Walk
, this uses multiple threads for traversing a directory.
Implementations
sourceimpl WalkParallel
impl WalkParallel
sourcepub fn run<F>(self, mkf: F)where
F: FnMut() -> Box<dyn FnMut(Result<DirEntry, Error>) -> WalkState + Send + 'static>,
pub fn run<F>(self, mkf: F)where
F: FnMut() -> Box<dyn FnMut(Result<DirEntry, Error>) -> WalkState + Send + 'static>,
Execute the parallel recursive directory iterator. mkf
is called
for each thread used for iteration. The function produced by mkf
is then in turn called for each visited file path.
Auto Trait Implementations
impl !RefUnwindSafe for WalkParallel
impl Send for WalkParallel
impl Sync for WalkParallel
impl Unpin for WalkParallel
impl !UnwindSafe for WalkParallel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more