[][src]Function yew_router_route_parser::convert_tokens

pub fn convert_tokens(tokens: &[RouteParserToken]) -> Vec<MatcherToken>

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.