rustdoc: Show generic parameters for item being documented #81977
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Currently, rustdoc does not display generic parameters for the item being documented:
This can be confusing because you will see generic parameters used that are never documented themselves. This is especially common with enums. As you can see in the image above, the variants section for
std::option::Option
shows theSome(T)
variant — but where did theT
come from?It might be nice to show something like this instead (the difference is the
<T>
added afterstd::option::Option
in the header):The text was updated successfully, but these errors were encountered: