Trait gotham::router::route::matcher::IntoRouteMatcher

source ·
pub trait IntoRouteMatcher {
    type Output: RouteMatcher;

    // Required method
    fn into_route_matcher(self) -> Self::Output;
}
Expand description

Allow various types to represent themselves as a RouteMatcher

Required Associated Types§

source

type Output: RouteMatcher

The concrete RouteMatcher each implementation will provide.

Required Methods§

source

fn into_route_matcher(self) -> Self::Output

Transform into a RouteMatcher of the the associated type identified by Output.

Implementations on Foreign Types§

source§

impl IntoRouteMatcher for Vec<Method>

Implementors§

source§

impl<M> IntoRouteMatcher for M
where M: RouteMatcher + Send + Sync + 'static,

§

type Output = M