pub struct WalkDir { /* private fields */ }Expand description
Configure walking over all files in a directory tree.
Implementations§
Source§impl WalkDir
impl WalkDir
pub fn new(path: impl AsRef<Path>) -> Self
pub fn min_depth(self, n: usize) -> Self
pub fn max_depth(self, n: usize) -> Self
pub fn max_open(self, n: usize) -> Self
pub fn follow_links(self, yes: bool) -> Self
pub fn sort_by<F>(self, cmp: F) -> Self
pub fn contents_first(self, yes: bool) -> Self
pub fn same_file_system(self, yes: bool) -> Self
pub fn build(self) -> IntoIter ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WalkDir
impl RefUnwindSafe for WalkDir
impl Send for WalkDir
impl Sync for WalkDir
impl Unpin for WalkDir
impl UnwindSafe for WalkDir
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