Struct path2regex::Matcher
source · pub struct Matcher { /* private fields */ }
Available on crate feature
match
only.Expand description
Path matcher
Implementations§
source§impl Matcher
impl Matcher
sourcepub fn new<S>(path: S) -> Result<Self>where
S: TryIntoWith<PathRegex, PathRegexOptions>,
pub fn new<S>(path: S) -> Result<Self>where
S: TryIntoWith<PathRegex, PathRegexOptions>,
Create a Matcher
sourcepub fn new_with_options<S>(path: S, options: MatcherOptions) -> Result<Self>where
S: TryIntoWith<PathRegex, PathRegexOptions>,
pub fn new_with_options<S>(path: S, options: MatcherOptions) -> Result<Self>where
S: TryIntoWith<PathRegex, PathRegexOptions>,
Create a Matcher
with the options