pub struct FileWalker<'a, F>where
F: WalkerFs,{ /* private fields */ }Expand description
Implementations§
Source§impl<'a, F> FileWalker<'a, F>where
F: WalkerFs,
impl<'a, F> FileWalker<'a, F>where
F: WalkerFs,
Sourcepub fn new(fs: &'a F, root: impl AsRef<Path>) -> FileWalker<'a, F>
pub fn new(fs: &'a F, root: impl AsRef<Path>) -> FileWalker<'a, F>
Create a new file walker starting at the given root.
Sourcepub fn with_pattern(self, pattern: GlobPath) -> FileWalker<'a, F>
pub fn with_pattern(self, pattern: GlobPath) -> FileWalker<'a, F>
Set a glob pattern to filter results.
Sourcepub fn with_options(self, options: WalkOptions) -> FileWalker<'a, F>
pub fn with_options(self, options: WalkOptions) -> FileWalker<'a, F>
Set walk options.
Sourcepub fn with_ignore(self, filter: IgnoreFilter) -> FileWalker<'a, F>
pub fn with_ignore(self, filter: IgnoreFilter) -> FileWalker<'a, F>
Set the ignore filter explicitly.
Auto Trait Implementations§
impl<'a, F> Freeze for FileWalker<'a, F>
impl<'a, F> !RefUnwindSafe for FileWalker<'a, F>
impl<'a, F> Send for FileWalker<'a, F>
impl<'a, F> Sync for FileWalker<'a, F>
impl<'a, F> Unpin for FileWalker<'a, F>
impl<'a, F> !UnwindSafe for FileWalker<'a, F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more