Skip to content

[rustdoc] Have a more nuanced take on what is hidden by default #82114

Closed
@Manishearth

Description

@Manishearth

https://twitter.com/mcclure111/status/1361025145125634061

By default, we:

  • hide attributes
  • hide structs
  • hide unions
  • hide traits
  • hide trait implementation
  • hide implementor list

I feel like traits probably should be shown by default, since everything on the trait is important, especially for implementors.

Furthermore, it might be worth splitting "structs" into "structs with all-public fields" and "structs with private fields" for the same reason (with unit structs being treated as having all public). For the former kind the actual struct declaration is super useful, for the latter kind it's not at all.

cc @rust-lang/rustdoc

Metadata

Metadata

Assignees

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-discussionCategory: Discussion or questions that doesn't represent real issues.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