[−][src]Enum yew_router_route_parser::parser::RefCaptureVariant
Token representing various types of captures.
It can capture and discard for unnamed variants, or capture and store in the Matches
for the
named variants.
Its name stems from the fact that it does not have ownership over all its values. It gets converted to CaptureVariant, a nearly identical enum that has owned Strings instead.
Variants
{}
{*}
{5}
Fields of NumberedUnnamed
sections: usize
Number of sections to match.
Named(&'a str)
{name} - captures a section and adds it to the map with a given name.
ManyNamed(&'a str)
{*:name} - captures over many sections and adds it to the map with a given name.
{2:name} - captures a fixed number of sections with a given name.
Fields of NumberedNamed
Trait Implementations
impl<'a> Clone for RefCaptureVariant<'a>
[src]
fn clone(&self) -> RefCaptureVariant<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for RefCaptureVariant<'a>
[src]
impl<'a> Debug for RefCaptureVariant<'a>
[src]
impl<'a> From<RefCaptureVariant<'a>> for CaptureVariant
[src]
fn from(v: RefCaptureVariant<'a>) -> Self
[src]
impl<'a> PartialEq<RefCaptureVariant<'a>> for RefCaptureVariant<'a>
[src]
fn eq(&self, other: &RefCaptureVariant<'a>) -> bool
[src]
fn ne(&self, other: &RefCaptureVariant<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for RefCaptureVariant<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for RefCaptureVariant<'a>
impl<'a> Send for RefCaptureVariant<'a>
impl<'a> Sync for RefCaptureVariant<'a>
impl<'a> Unpin for RefCaptureVariant<'a>
impl<'a> UnwindSafe for RefCaptureVariant<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,