pub struct WalkOptions {
pub ignores: HashSet<PathBuf>,
pub walk_all: bool,
pub scanned_hidden: HashSet<String>,
pub max_depth: Option<usize>,
pub one_file_system: bool,
}Fields§
§ignores: HashSet<PathBuf>Absolute paths that are neither scanned nor reclaimed.
walk_all: boolDescend into every hidden directory, not only WalkOptions::scanned_hidden.
Hidden directories descended into even when walk_all is false.
Build output routinely hides behind a leading dot – .venv, .gradle, .next.
Skipping every dotted directory by default means missing most of it.
max_depth: Option<usize>Maximum depth below the scan root, or None for unlimited.
one_file_system: boolDo not cross onto another filesystem, so a scan cannot wander onto network mounts.
Trait Implementations§
Source§impl Clone for WalkOptions
impl Clone for WalkOptions
Source§fn clone(&self) -> WalkOptions
fn clone(&self) -> WalkOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalkOptions
impl Debug for WalkOptions
Source§impl Default for WalkOptions
impl Default for WalkOptions
Source§fn default() -> WalkOptions
fn default() -> WalkOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WalkOptions
impl RefUnwindSafe for WalkOptions
impl Send for WalkOptions
impl Sync for WalkOptions
impl Unpin for WalkOptions
impl UnsafeUnpin for WalkOptions
impl UnwindSafe for WalkOptions
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