Skip to content

Rustdoc: collapse everything except impl Struct blocks #57582

Description

Most of the time when browsing docs I'd like to first have everything collapsed except the impl Struct blocks, skim over the available methods, and then dig in deeper if necessary.

Currently, we have the [+] button that either expands everything or collapses everything. It'd be nice to have something in between.

Twitter thread: https://twitter.com/stjepang/status/1084525502545698816
Seems like a lot of people would like to have the "all collapsed except impl Struct" view presented by default.

cc @GuillaumeGomez

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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