docs for Traits get duplicated because of different types #24558
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
A-trait-system
Area: Trait system
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
E-needs-design
This issue needs exploration and design to see how and if we can fix/implement it
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
f32 for example essentially supports traits like
Add
which have multiple copies which aren't duplicates but seem repetitive because they are essentially very similar:Currently:
It would be very nice if these could be combined so the repetition is less drastic. I've only come up with 2 options so far but maybe there are more.
Option A:
This is tricky to improve because all are different. One course would be to collapse all but the last by default which would make it look like the following block. This would also aid #21660 . This makes all the types clear but only shows one method because all the methods will be the same.
Option B:
Use some type of shorthand to include all options (like globbing). This should expand to specifics if desired I suppose.
Option A looks the most practical. I'm trying to think of a better way to include only one but still allow the specifics to be examined but haven't come up with any better ideas.
The text was updated successfully, but these errors were encountered: