pub fn convert_tokens(tokens: &[RouteParserToken<'_>]) -> Vec<MatcherToken>
Expand description
Converts a slice of RouteParserToken
into a Vec of MatcherTokens.
In the process of converting the tokens, this function will condense multiple RouteParserTokens that represent literals into one Exact variant if multiple reducible tokens happen to occur in a row.