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

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

Matches path against this matcher.

Loading content...

Provided methods

fn boxed<'a>(self) -> Box<dyn PathMatcher + 'a> where
    Self: Sized + 'a, 
[src]

Converts this matcher to boxed representation.

Can be used for any_of.

Loading content...

Implementors

impl<F> PathMatcher for F where
    F: Fn(&Path) -> bool
[src]

Loading content...