routes

Macro routes 

Source
macro_rules! routes {
    ( $(
        $( ($($tt:tt)*) )|*
        $( for $args:pat in $src:expr )?
        => $expr:expr
    ),* $(,)? ) => { ... };
    (@one
        $( ($($tt:tt)*) )|*
        => $expr:expr
    ) => { ... };
    (@one
        $( ($($tt:tt)*) )|*
        for $args:pat in $src:expr
        => $expr:expr
    ) => { ... };
    (@check_missing_expr
        [$x:expr] $($tt:tt)*
    ) => { ... };
    (@check_missing_expr
        $_:tt $($tt:tt)*
    ) => { ... };
    (@check_missing_expr) => { ... };
    (@path_full
        / $($tt:tt)*
    ) => { ... };
    (@path_full
        $($tt:tt)*
    ) => { ... };
    (@path) => { ... };
    (@path /) => { ... };
    (@path
        / / $($tt:tt)*
    ) => { ... };
    (@path
        / $($tt:tt)*
    ) => { ... };
    (@path
        $x:literal $($tt:tt)*
    ) => { ... };
    (@path
        [$x:expr] $($tt:tt)*
    ) => { ... };
}
Expand description

Define a vector of Routes