pub struct FileSearchOptions {
pub limit: NonZero<usize>,
pub exclude: Vec<String>,
pub threads: NonZero<usize>,
pub compute_indices: bool,
pub respect_gitignore: bool,
}Fields§
§limit: NonZero<usize>§exclude: Vec<String>§threads: NonZero<usize>§compute_indices: bool§respect_gitignore: boolToggle ignore-file processing in the walker.
When enabled, .gitignore files are scoped by
WalkBuilder::require_git(true), so they are honored only when the
traversed path is inside a git repository. When disabled, the walker
turns off .gitignore, git-global/exclude rules, .ignore, and
parent-directory ignore scanning.
Trait Implementations§
Source§impl Clone for FileSearchOptions
impl Clone for FileSearchOptions
Source§fn clone(&self) -> FileSearchOptions
fn clone(&self) -> FileSearchOptions
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 FileSearchOptions
impl Debug for FileSearchOptions
Auto Trait Implementations§
impl Freeze for FileSearchOptions
impl RefUnwindSafe for FileSearchOptions
impl Send for FileSearchOptions
impl Sync for FileSearchOptions
impl Unpin for FileSearchOptions
impl UnsafeUnpin for FileSearchOptions
impl UnwindSafe for FileSearchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more