PatternMatcher

Trait PatternMatcher 

Source
pub trait PatternMatcher: Send + Sync {
    // Required methods
    fn matches(&self, path: &Path) -> bool;
    fn pattern(&self) -> &str;

    // Provided method
    fn is_case_sensitive(&self) -> bool { ... }
}
Expand description

Trait for pattern matching implementations (glob, regex, etc.)

Required Methods§

Source

fn matches(&self, path: &Path) -> bool

Check if a path matches the pattern

Source

fn pattern(&self) -> &str

Get pattern string for debugging

Provided Methods§

Source

fn is_case_sensitive(&self) -> bool

Check if pattern is case sensitive

Implementors§