Function mimeograph_router_helpers::router_core[][src]

pub fn router_core<T, U>(
    request: T,
    routes: &'static [&ConstRoute<T, U>]
) -> Result<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(_)