Enum yew_router_nested_route_parser::CaptureVariant [−][src]
pub enum CaptureVariant {
Unnamed,
ManyUnnamed,
NumberedUnnamed {
sections: usize,
},
Named(String),
ManyNamed(String),
NumberedNamed {
sections: usize,
name: String,
},
}
Expand description
Variants that indicate how part of a string should be captured.
Variants
Unnamed
{}
ManyUnnamed
{*}
NumberedUnnamed
Fields
sections: usize
Number of sections to match.
{5}
Named(String)
Tuple Fields
0: String
{name} - captures a section and adds it to the map with a given name.
ManyNamed(String)
Tuple Fields
0: String
{*:name} - captures over many sections and adds it to the map with a given name.
NumberedNamed
Fields
sections: usize
Number of sections to match.
name: String
The key to be entered in the Matches
map.
{2:name} - captures a fixed number of sections with a given name.
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 CaptureVariant
impl Send for CaptureVariant
impl Sync for CaptureVariant
impl Unpin for CaptureVariant
impl UnwindSafe for CaptureVariant
Blanket Implementations
Mutably borrows from an owned value. Read more