pub fn new(i: &str, settings: MatcherSettings) -> Result<Self, (&str, ParserError)> {
        //        let tokens = parser::parse(i)?;
        Ok(RouteMatcher {
            tokens: parse_str_and_optimize_tokens(i)?,
            settings,
        })
    }
/// Creates a new Matcher with settings.
Creates a new Matcher with settings.
Creates a new Matcher with settings .
pub fn new(i: &str, settings: MatcherSettings) -> Result<Self, (&str, ParserError)> {
        //        let tokens = parser::parse(i)?;
        Ok(RouteMatcher {
            tokens: parse_str_and_optimize_tokens(i)?,
            settings,
        })
    }
pub fn new ( i : & str , settings : MatcherSettings ) -> Result < Self , ( & str , ParserError ) > { //        let tokens = parser::parse(i)?; Ok ( RouteMatcher { tokens : parse_str_and_optimize_tokens ( i ) ? , settings , } ) }
Creates a new Matcher with settings.
Creates a new Matcher with settings .
i
&str
settings
MatcherSettings
i
&str
settings
MatcherSettings