Rustdoc: List traits that a trait implements #37593
Labels
T-dev-tools
Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Basically, a struct will list all the methods and traits that it implements, but a trait will not. So while looking at the docs for a specific struct gets you complete info on what you can do with it, looking at the docs for a trait doesn't tell you anything about what other traits it brings along with it.
For example,
IntoIter
is implemented forIterator
, but there's no mention of this in the docs for theIterator
trait. So if you implementIterator
on a type you getIntoIter
for free along with it but there's no way to discover this unless you dig doooooown through the docs forIntoIter
.Sorry if this is a duplicate.
The text was updated successfully, but these errors were encountered: