pub fn into_shadow_matcher_tokens(
        self,
        id: usize,
        field_naming_scheme: FieldNamingScheme,
    ) -> Vec<ShadowMatcherToken> {
        match self {
            AttrToken::To(matcher_string) => {
                yew_router_route_parser::parse_str_and_optimize_tokens(&matcher_string, field_naming_scheme)
                    .expect("Invalid Matcher") // This is the point where users should see an error message if their matcher string has some syntax error.
                    .into_iter()
                    .map(crate::switch::shadow::ShadowMatcherToken::from)
                    .collect()
            }
            AttrToken::End => vec![ShadowMatcherToken::End],
            AttrToken::Rest(Some(capture_name)) => vec![ShadowMatcherToken::Capture(
                ShadowCaptureVariant::ManyNamed(capture_name),
            )],
            AttrToken::Rest(None) => vec![ShadowMatcherToken::Capture(
                ShadowCaptureVariant::ManyNamed(id.to_string()),
            )],
        }
    }
/// The id is an unique identifier that allows otherwise unnamed captures to still be captured
/// with unique names.
The id is an unique identifier that allows otherwise unnamed captures to still be captured
with unique names.
The id is an unique identifier that allows otherwise unnamed captures to still be captured with unique names .
pub fn into_shadow_matcher_tokens(
        self,
        id: usize,
        field_naming_scheme: FieldNamingScheme,
    ) -> Vec<ShadowMatcherToken> {
        match self {
            AttrToken::To(matcher_string) => {
                yew_router_route_parser::parse_str_and_optimize_tokens(&matcher_string, field_naming_scheme)
                    .expect("Invalid Matcher") // This is the point where users should see an error message if their matcher string has some syntax error.
                    .into_iter()
                    .map(crate::switch::shadow::ShadowMatcherToken::from)
                    .collect()
            }
            AttrToken::End => vec![ShadowMatcherToken::End],
            AttrToken::Rest(Some(capture_name)) => vec![ShadowMatcherToken::Capture(
                ShadowCaptureVariant::ManyNamed(capture_name),
            )],
            AttrToken::Rest(None) => vec![ShadowMatcherToken::Capture(
                ShadowCaptureVariant::ManyNamed(id.to_string()),
            )],
        }
    }
pub fn into_shadow_matcher_tokens ( self , id : usize , field_naming_scheme : FieldNamingScheme , ) -> Vec < ShadowMatcherToken > { match self { AttrToken :: To ( matcher_string ) => { yew_router_route_parser :: parse_str_and_optimize_tokens ( & matcher_string , field_naming_scheme ) . expect ( " " ) // This is the point where users should see an error message if their matcher string has some syntax error. . into_iter ( ) . map ( crate :: switch :: shadow :: ShadowMatcherToken :: from ) . collect ( ) } AttrToken :: End => vec ! [ ShadowMatcherToken End ] , AttrToken :: Rest ( Some ( capture_name ) ) => vec ! [ ShadowMatcherToken Capture ( ShadowCaptureVariant ManyNamed ( capture_name ) ) ] , AttrToken :: Rest ( None ) => vec ! [ ShadowMatcherToken Capture ( ShadowCaptureVariant ManyNamed ( id to_string ( ) ) ) ] , } }
The id is an unique identifier that allows otherwise unnamed captures to still be captured
with unique names.
The id is an unique identifier that allows otherwise unnamed captures to still be captured with unique names .
self
id
usize
field_naming_scheme
FieldNamingScheme
self
id
usize
field_naming_scheme
FieldNamingScheme