pub struct RepositoryPathMatcher { /* private fields */ }Expand description
Cached matcher for event paths outside a complete repository traversal.
Implementations§
Source§impl RepositoryPathMatcher
impl RepositoryPathMatcher
Sourcepub fn new(root: &Path, policy: IgnorePolicy) -> Self
pub fn new(root: &Path, policy: IgnorePolicy) -> Self
Builds a matcher rooted at one registered checkout.
Sourcepub fn excludes(
&mut self,
relative: &Path,
directory: bool,
) -> Result<bool, RepositoryDiscoveryError>
pub fn excludes( &mut self, relative: &Path, directory: bool, ) -> Result<bool, RepositoryDiscoveryError>
Returns whether a path is excluded by protected, configured, default, or Git rules.
§Errors
Returns RepositoryDiscoveryError when an enabled ignore file cannot be interpreted.
Trait Implementations§
Source§impl Clone for RepositoryPathMatcher
impl Clone for RepositoryPathMatcher
Source§fn clone(&self) -> RepositoryPathMatcher
fn clone(&self) -> RepositoryPathMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !Freeze for RepositoryPathMatcher
impl RefUnwindSafe for RepositoryPathMatcher
impl Send for RepositoryPathMatcher
impl Sync for RepositoryPathMatcher
impl Unpin for RepositoryPathMatcher
impl UnsafeUnpin for RepositoryPathMatcher
impl UnwindSafe for RepositoryPathMatcher
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