Skip to content

Rustdoc: Hide trait impl fn:s on pressing + for types #45720

Closed
@Centril

Description

@Centril

When pressing the + hotkey on type's documentation such as on the documentation of Option, the methods of the impl are still shown. This is however mostly useless information that gets in the way of scrolling to see what traits a type implements.

It would be more ergonomic if + would hide every method of every trait impl but still show all associated items (types and consts) for each impl (since they carry useful information).

In addition, a [+]/[-] link should be added on all the impls (including non-trait impls) either besides [src] or to the left of the impl (as done with fns this expands and collapses the impls but keeps associated items shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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