pub struct PatternMatcherBuilder { /* private fields */ }
Expand description
Builder for creating pattern matchers with a fluent API
Implementations§
Source§impl PatternMatcherBuilder
impl PatternMatcherBuilder
Sourcepub fn respect_gitignore(self, respect: bool) -> Self
pub fn respect_gitignore(self, respect: bool) -> Self
Set whether to respect gitignore files
Sourcepub fn case_sensitive(self, sensitive: bool) -> Self
pub fn case_sensitive(self, sensitive: bool) -> Self
Set case sensitivity
Set whether to include hidden files
Sourcepub fn custom_gitignore_files<I, P>(self, files: I) -> Self
pub fn custom_gitignore_files<I, P>(self, files: I) -> Self
Add custom gitignore files
Sourcepub fn override_patterns<I, S>(self, patterns: I) -> Self
pub fn override_patterns<I, S>(self, patterns: I) -> Self
Add override patterns
Sourcepub fn base_path<P: Into<PathBuf>>(self, path: P) -> Self
pub fn base_path<P: Into<PathBuf>>(self, path: P) -> Self
Set the base path for gitignore resolution
Sourcepub fn build(self) -> Result<PatternMatcher>
pub fn build(self) -> Result<PatternMatcher>
Build the pattern matcher
Trait Implementations§
Source§impl Debug for PatternMatcherBuilder
impl Debug for PatternMatcherBuilder
Source§impl Default for PatternMatcherBuilder
impl Default for PatternMatcherBuilder
Source§fn default() -> PatternMatcherBuilder
fn default() -> PatternMatcherBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PatternMatcherBuilder
impl RefUnwindSafe for PatternMatcherBuilder
impl Send for PatternMatcherBuilder
impl Sync for PatternMatcherBuilder
impl Unpin for PatternMatcherBuilder
impl UnwindSafe for PatternMatcherBuilder
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