1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::routes::Route;

pub trait IntoRoute {
	type IntoRoute: Route;

	fn into_route(self) -> Self::IntoRoute;
}

impl<R> IntoRoute for R
where R: Route {
	type IntoRoute = Self;

	fn into_route(self) -> Self {
		self
	}
}