Trait path_matchers::PathMatcher [−][src]
pub trait PathMatcher { fn matches(&self, path: &Path) -> bool; fn boxed<'a>(self) -> Box<dyn PathMatcher + 'a>
where
Self: Sized + 'a, { ... } }
Allows to match a path against implemented condition.
Required methods
Loading content...Provided methods
fn boxed<'a>(self) -> Box<dyn PathMatcher + 'a> where
Self: Sized + 'a,
[src]
Self: Sized + 'a,
Converts this matcher to boxed representation.
Can be used for any_of
.
Implementors
impl<F> PathMatcher for F where
F: Fn(&Path) -> bool,
[src]
F: Fn(&Path) -> bool,