Repository navigation
0.1.2
-
Support for inherent methods that inherit the default impl provided by the trait (#2, thanks @vorner)
trait Trait { fn method(&self); fn method_with_default(&self) { /* ... */ } } #[inherent] impl Trait for Struct { fn method(&self) { /* ... */ } default! { // #[inherent] requires that the signature is provided if // we want an inherent method for it, but we omit a method // body here. fn method_with_default(&self); } }