-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
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 {
...
}
}
unmarshall, ethanli83, Jiuhong-casperlabs, Corallus-Caninus, dariocurr and 1 moreOughie
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.