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
- Parser that consumes a string and produces the first representation of the matcher.
Structs§
- Parse
Error - Error for parsing the route
- Pretty
Parse Error - Parser error that can print itself in a human-readable format.
Enums§
- Capture
Variant - Variants that indicate how part of a string should be captured.
- Field
Naming Scheme - Indicates if the parser is working to create a matcher for a datastructure with named or unnamed fields.
- Matcher
Token - Tokens used to determine how to match and capture sections from a URL.
Functions§
- convert_
tokens - Converts a slice of
RouteParserToken
into a Vec of MatcherTokens. - parse_
str_ and_ optimize_ tokens - Parse the provided “matcher string” and then optimize the tokens.
Type Aliases§
- Captures
- Alias of
HashMap<&'a str, String>
that represent strings captured from a route.