fire_http/into/
into_route.rs1use crate::routes::Route;
2
3pub trait IntoRoute {
4 type IntoRoute: Route;
5
6 fn into_route(self) -> Self::IntoRoute;
7}
8
9impl<R> IntoRoute for R
10where
11 R: Route,
12{
13 type IntoRoute = Self;
14
15 fn into_route(self) -> Self {
16 self
17 }
18}