#[non_exhaustive]pub struct WalkConfiguration<'p> { /* private fields */ }
Expand description
Options controlling recursive traversal with walk
.
Implementations§
Source§impl<'p> WalkConfiguration<'p>
impl<'p> WalkConfiguration<'p>
Sourcepub fn sort_by_file_name(self) -> Self
pub fn sort_by_file_name(self) -> Self
Sort directory entries by file name.
Sourcepub fn path_base(self, base: &'p Path) -> Self
pub fn path_base(self, base: &'p Path) -> Self
Change the inital state for the path. By default the
computed path is relative. This has no effect
on the filesystem traversal - it solely affects
the value of WalkComponent::path
.
Trait Implementations§
Source§impl Debug for WalkConfiguration<'_>
impl Debug for WalkConfiguration<'_>
Source§impl<'p> Default for WalkConfiguration<'p>
impl<'p> Default for WalkConfiguration<'p>
Source§fn default() -> WalkConfiguration<'p>
fn default() -> WalkConfiguration<'p>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'p> Freeze for WalkConfiguration<'p>
impl<'p> !RefUnwindSafe for WalkConfiguration<'p>
impl<'p> !Send for WalkConfiguration<'p>
impl<'p> !Sync for WalkConfiguration<'p>
impl<'p> Unpin for WalkConfiguration<'p>
impl<'p> !UnwindSafe for WalkConfiguration<'p>
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