On the rustdoc page for type `T`, the sidebar section "Trait Implementations" lists `impl A<T> for U` items identically for all `U`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Consider https://doc.rust-lang.org/std/primitive.u32.html. In the sidebar, scroll to "Trait Implementations" and you will see this (similar for many other traits, such as Add and Shl):
This is hard to use because you have to hover over each of them and check the URL to see what it is.
Maybe the for part should be included in the hyperlink text if they'd otherwise be identical. Or maybe with a nested list so it fits more easily into the narrow sidebar:
- From<bool>
- From<char>
- From<u8>
- From<u32>
- for AtomicU32
- for Ipv4Addr
- for f128
- ...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the sidebar behavior on the linked std::primitive.u32.html page and inspect the rustdoc implementation that generates the "Trait Implementations" section. Compare the proposed hyperlink and nested-list presentations, then verify that implementations with different target types are distinguishable in the rendered sidebar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100