3 #![allow(unused_variables)]
4 #![feature(associated_type_defaults)]
6 use std::marker::PhantomData;
10 fn resolve(&self, input: I);
15 type Routing : ?Sized = dyn Routing<Self::Input, Output=()>;
16 fn to_routing(self) -> Self::Routing;
19 pub struct Mount<I, R: Routing<I>> {
21 _marker: PhantomData<I>
24 impl<I, R: Routing<I>> Mount<I, R> {
25 pub fn create<T: ToRouting<Routing=R>>(mount: &str, input: T) {