pub struct QuickMatcher { /* private fields */ }
Expand description
Quick pattern matching utility for simple use cases
Implementations§
Source§impl QuickMatcher
impl QuickMatcher
Sourcepub fn new(include_patterns: &[&str], exclude_patterns: &[&str]) -> Result<Self>
pub fn new(include_patterns: &[&str], exclude_patterns: &[&str]) -> Result<Self>
Create a new quick matcher with include and exclude patterns
Sourcepub fn from_patterns(
include_csv: Option<&str>,
exclude_csv: Option<&str>,
) -> Result<Self>
pub fn from_patterns( include_csv: Option<&str>, exclude_csv: Option<&str>, ) -> Result<Self>
Create a quick matcher from comma-separated pattern strings
Sourcepub fn matches<P: AsRef<Path>>(&mut self, path: P) -> Result<bool>
pub fn matches<P: AsRef<Path>>(&mut self, path: P) -> Result<bool>
Test if a path should be included
Sourcepub fn match_details<P: AsRef<Path>>(&mut self, path: P) -> Result<MatchResult>
pub fn match_details<P: AsRef<Path>>(&mut self, path: P) -> Result<MatchResult>
Get detailed match information
Auto Trait Implementations§
impl Freeze for QuickMatcher
impl RefUnwindSafe for QuickMatcher
impl Send for QuickMatcher
impl Sync for QuickMatcher
impl Unpin for QuickMatcher
impl UnwindSafe for QuickMatcher
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