1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
//! Collections of path matchers (matches the path).

pub mod simple;

pub use simple::Simple;

/// Common Matcher trait
pub trait MatchMaker {
    /// Check whether the path matches
    /// # Arguments
    /// * `path` - path to be matched
    ///
    /// # Returns
    /// * `true` if path matches, `false` otherwise
    fn match_path(&self, path: &str) -> bool;
}