Skip to content

rustdoc: toggle to show private items in rustdoc #141114

Open
@lolbinarycat

Description

@lolbinarycat

requested by rust4linux, will be an opt-in nightly only feature at first.

the core bit of code would be something like document.querySelectorAll("dt:has([title='Restricted Visibility'])").forEach(x => x.hidden = true) on a button/toggle. we probably want to add a css class for hidden items.

how it interacts with the search index is complicated, so the first MVP will likely not affect rustdoc search at all

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.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