pub struct DirectorySearchOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for DirectorySearchOpts
.
Implementations§
Source§impl<'a> DirectorySearchOptsBuilder<'a>
impl<'a> DirectorySearchOptsBuilder<'a>
Sourcepub fn dotall<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn dotall<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Allow the . pattern to match newlines in multiline mode.
Sourcepub fn files_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn files_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Only return matching files, not lines and content
Sourcepub fn globs<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
pub fn globs<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
Glob patterns to match (e.g., “*.md”)
Sourcepub fn insensitive<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn insensitive<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Enable case-insensitive matching.
Sourcepub fn limit<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
Limit the number of results to return
Sourcepub fn literal<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn literal<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Interpret the pattern as a literal string instead of a regular expression.
Sourcepub fn multiline<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn multiline<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Enable searching across multiple lines.
Sourcepub fn paths<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
pub fn paths<VALUE: Into<Vec<&'a str>>>(&mut self, value: VALUE) -> &mut Self
Directory or file paths to search
Skip hidden files (files starting with .).
Sourcepub fn skip_ignored<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn skip_ignored<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Honor .gitignore, .ignore, and .rgignore files.
Sourcepub fn build(
&self,
) -> Result<DirectorySearchOpts<'a>, DirectorySearchOptsBuilderError>
pub fn build( &self, ) -> Result<DirectorySearchOpts<'a>, DirectorySearchOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for DirectorySearchOptsBuilder<'a>
impl<'a> Clone for DirectorySearchOptsBuilder<'a>
Source§fn clone(&self) -> DirectorySearchOptsBuilder<'a>
fn clone(&self) -> DirectorySearchOptsBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for DirectorySearchOptsBuilder<'a>
impl<'a> RefUnwindSafe for DirectorySearchOptsBuilder<'a>
impl<'a> Send for DirectorySearchOptsBuilder<'a>
impl<'a> Sync for DirectorySearchOptsBuilder<'a>
impl<'a> Unpin for DirectorySearchOptsBuilder<'a>
impl<'a> UnwindSafe for DirectorySearchOptsBuilder<'a>
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