pub struct Filter {
pub include_patterns: Vec<Pattern>,
pub exclude_patterns: Vec<Pattern>,
pub ignore_case: bool,
}Expand description
Filter configuration for file matching
Fields§
§include_patterns: Vec<Pattern>Patterns to include (empty means include all)
exclude_patterns: Vec<Pattern>Patterns to exclude
ignore_case: boolWhether pattern matching is case-insensitive
Implementations§
Source§impl Filter
impl Filter
pub fn new() -> Self
Sourcepub fn add_include(&mut self, pattern: &str) -> Result<(), PatternError>
pub fn add_include(&mut self, pattern: &str) -> Result<(), PatternError>
Add an include pattern (-P)
Sourcepub fn add_exclude(&mut self, pattern: &str) -> Result<(), PatternError>
pub fn add_exclude(&mut self, pattern: &str) -> Result<(), PatternError>
Add an exclude pattern (-I)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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