Enum yew_router_nested_route_parser::MatcherToken [−][src]
pub enum MatcherToken {
Exact(String),
Capture(CaptureVariant),
End,
}
Expand description
Tokens used to determine how to match and capture sections from a URL.
Variants
Exact(String)
Tuple Fields
0: String
Section-related tokens can be condensed into a match.
Capture(CaptureVariant)
Tuple Fields
Capture section.
End
End token - if the string hasn’t been consumed entirely, then the parse will fail. This is useful for being able to specify more general matchers for variants that would otherwise match above more specific variants.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MatcherToken
impl Send for MatcherToken
impl Sync for MatcherToken
impl Unpin for MatcherToken
impl UnwindSafe for MatcherToken
Blanket Implementations
Mutably borrows from an owned value. Read more