Function mimeograph_router_helpers::router[][src]

pub fn router<T, U>(
    request: T,
    routes: &'static [&ConstRoute<T, U>]
) -> RouterResult<U, T> where
    T: Request
Expand description

Tries to match request to a route in routes. On route match, the result of the route is returned in Ok(_) If no route matches, request is returned in Err(_)