pub struct FileSearcherConfig {
pub search: SearchType,
pub replace: String,
pub whole_word: bool,
pub match_case: bool,
pub overrides: Override,
pub root_dir: PathBuf,
pub include_hidden: bool,
}Expand description
Configuration for creating a new FileSearcher.
Fields§
§search: SearchTypeThe pattern to search for (fixed string or regex)
replace: StringThe text to replace matches with
whole_word: boolWhether to match only whole words (bounded by non-word characters)
match_case: boolWhether to perform case-sensitive matching
overrides: OverrideConfiguration for file inclusion/exclusion patterns
root_dir: PathBufThe root directory to start searching from
Whether to include hidden files/directories in the search
Auto Trait Implementations§
impl Freeze for FileSearcherConfig
impl RefUnwindSafe for FileSearcherConfig
impl Send for FileSearcherConfig
impl Sync for FileSearcherConfig
impl Unpin for FileSearcherConfig
impl UnwindSafe for FileSearcherConfig
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