Skip to content

rustdoc search: for return-type based searches, deprioritize functions that also have that type in an argument #134935

Closed
@lolbinarycat

Description

@lolbinarycat

for example, searching the rustc docs for -> Context returns several clone methods.

what this type of search means is "how do i get values of this type", in which case clone is not very useful, and stuff like constructors should be shown first.

this would apply to both -> Type searches and also the "in return types" tab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureA-type-based-searchArea: Searching rustdoc pages using type signaturesC-enhancementCategory: An issue proposing an enhancement or a PR with one.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