Skip to content

0.1.2

Choose a tag to compare

@dtolnay dtolnay released this 16 Sep 05:24
· 156 commits to master since this release
0.1.2
ee3a640
  • 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);
        }
    }