From bffdb1e7ad54b0b857d69d45b8791c68741a6ea0 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Fri, 13 Aug 2021 00:20:47 -0300 Subject: Tweak docs/README slightly --- Cargo.toml | 2 +- README.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2657493..6f7645d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "impl_trait" -version = "0.1.4" +version = "0.1.5" authors = ["SoniEx2 "] edition = "2018" description = "Allows impl trait inside inherent impl." diff --git a/README.md b/README.md index 5efb22b..6d91176 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,14 @@ impl_trait! { } ``` +A few things to note: + +- You can have generics on the main `impl Foo` block. +- You can have generics on the trait impl with `impl trait Bar`. +- We unfortunately cannot make rustdoc output the trait impls as if they + were somehow "inherent" to the type. They'll still show up in a separate + "trait impls" section rather than as part of the appropriate impl block. + A note on licensing ------------------- -- cgit 1.4.1