pub trait PathMatcher {
// Required method
fn matches(&self, path: &Path) -> bool;
// Provided method
fn boxed<'a>(self) -> Box<dyn PathMatcher + 'a>
where Self: Sized + 'a { ... }
}
Expand description
Allows to match a path against implemented condition.