Skip to content

On the rustdoc page for type T, the sidebar section "Trait Implementations" lists impl A<T> for U items identically for all U #143123

Open
@zopsicle

Description

@zopsicle

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):

Screenshot

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
    • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions