-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc should show associated types in impl
documentation
#21092
Comments
You should be able (for most impls at least) to follow the link for the Self type on the impl to see the associated types. I agree it would be nice to have them listed in the Trait Implementations section, though I can't think of a pleasant way to show it. |
I didn’t know that, thanks. Though there is apparently another bug for re-exported items (like in the std facade) similar to #20203: http://doc.rust-lang.org/core/slice/struct.Iter.html#implementations
http://doc.rust-lang.org/std/slice/struct.Iter.html#implementations
|
I believe that's #20727 |
Related to #21348 perhaps (although this issue is about "trait implementations" on the trait's page, not the implementor's.) |
This appears to have been fixed at some point, yay! |
Ah but I'll add a test for it. |
For example, the
std::ops::Index
trait has an associatedOutput
type. Of course, that type is potentially different for eachimpl
of the trait.impl
are documented at http://localhost/rust/std/ops/trait.Index.html#implementors , but there is apparently now way to know what is theOutput
type for a given implementation. (Other than finding the source code, which is not necessarily easy because of #15744.)The text was updated successfully, but these errors were encountered: