pub struct WalkOptions {
pub respect_gitignore: bool,
pub max_depth: Option<usize>,
pub max_entries: Option<usize>,
}Expand description
Options for Host::walk.
Fields§
§respect_gitignore: boolHonor .gitignore / global gitignore / .git/info/exclude
(grok’s three git_* builder flags move together).
max_depth: Option<usize>Maximum depth below the root (None = unbounded; Some(1) = direct
children — grok’s depth-1 seed walk).
max_entries: Option<usize>Stop after collecting this many entries (None = unbounded). The walk
is depth-first in the ignore crate’s default order; callers impose
their own ordering/budgeting on the returned entries.
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 moreimpl Copy for WalkOptions
Source§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