Skip to content

rustdoc: when hiding item contents, include a count #85494

Closed
@jsha

Description

@jsha

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

Metadata

Metadata

Assignees

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions