Skip to content

rustdoc: Merge "Structs", "Enums", "Unions", and "Type Definitions" sections on module pages #92656

Closed
@camelid

Description

@camelid

Summary

Merge the following sections that appear on module (and crate) pages into a single "Types" section:

  • Structs
  • Enums
  • Unions
  • Type Definitions

Why?

  • Usually, the exact kind of type something is doesn't matter when you're looking at an overview.
  • It can be confusing to have to so many sections, and it creates more places where you have to look for what you want.
  • After the recent color reduction PR (rustdoc: use smaller number of colors to distinguish items #91480), the types are no longer colored differently, so it makes more sense to merge their sections.

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