Expand description

Parser for yew-router’s matcher syntax. This syntax allows specifying if a route should produce an enum variant or struct, and allows capturing sections from the route to be incorporated into its associated variant or struct.

Modules

Parser that consumes a string and produces the first representation of the matcher.

Structs

Error for parsing the route

Parser error that can print itself in a human-readable format.

Enums

Variants that indicate how part of a string should be captured.

Indicates if the parser is working to create a matcher for a datastructure with named or unnamed fields.

Tokens used to determine how to match and capture sections from a URL.

Functions

Converts a slice of RouteParserToken into a Vec of MatcherTokens.

Parse the provided “matcher string” and then optimize the tokens.

Type Definitions

Alias of HashMap<&'a str, String> that represent strings captured from a route.