rustdoc: when hiding item contents, include a count #85494
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
In #83337, we started hiding the contents (methods, fields, variants) of large traits, structs, and enums. When the contents are hidden there's text that says
[+] Show methods
. It's a little confusing as a user to figure out why some contents are hidden and some aren't. To improve that, we should include the number as a hint. E.g.[+] Show 15 methods
./cc @Manishearth
The text was updated successfully, but these errors were encountered: