diff options
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | README.md | 8 |
2 files changed, 9 insertions, 1 deletions
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 <endermoneymod@gmail.com>"] 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<T> Foo` block. +- You can have generics on the trait impl with `impl trait<T> 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 ------------------- |