Hello. I want do something like
trait Something {
type Container:ContainerTrait<T=Self::T>;
type T:SomeTrait;
fn foo(v:Self::T) -> Self::Container{ //rust do not like Container<T>
Self::Container::new(v);//using method of ContainerTrait
}
fn get(&self) -> Self::Continer{
...
}
}
Container is Box,Rc,Arc, etc. but rust Rc, Box has no Container trait. Please, add it
And allow to return just T without any container