[][src]Enum yew_router_route_parser::CaptureVariant

pub enum CaptureVariant {
    Unnamed,
    ManyUnnamed,
    NumberedUnnamed {
        sections: usize,
    },
    Named(String),
    ManyNamed(String),
    NumberedNamed {
        sections: usize,
        name: String,
    },
}

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

Variants

Unnamed

{}

ManyUnnamed

{*}

NumberedUnnamed

{5}

Fields of NumberedUnnamed

sections: usize

Number of sections to match.

Named(String)

{name} - captures a section and adds it to the map with a given name.

ManyNamed(String)

{*:name} - captures over many sections and adds it to the map with a given name.

NumberedNamed

{2:name} - captures a fixed number of sections with a given name.

Fields of NumberedNamed

sections: usize

Number of sections to match.

name: String

The key to be entered in the Matches map.

Trait Implementations

impl Clone for CaptureVariant[src]

impl Debug for CaptureVariant[src]

impl<'a> From<RefCaptureVariant<'a>> for CaptureVariant[src]

impl PartialEq<CaptureVariant> for CaptureVariant[src]

impl StructuralPartialEq for CaptureVariant[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.