Open
Description
A little bit of syntax sugar to make working with trait hierarchies easier.
Probably best to restrict to super-/sub-traits. E.g.,
trait Foo {
fn foo(&self) -> usize;
}
trait Bar: Foo {
fn bar1(&mut self) -> String;
fn bar2(&self) -> Foo;
}
impl Foo + Bar for SomeConcreteType {
fn foo(&self) -> usize{
...
}
fn bar1(&mut self) -> String{
...
}
fn bar2(&self) -> Foo {
...
}
}