Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend rustdoc search #65841

Open
GuillaumeGomez opened this issue Oct 26, 2019 · 0 comments
Open

Extend rustdoc search #65841

GuillaumeGomez opened this issue Oct 26, 2019 · 0 comments
Labels
A-type-based-search Area: Searching rustdoc pages using type signatures T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Oct 26, 2019

First idea

It'd be nice to write stuff like: "avec"::Vec or even vec::.

In the first example, you look specifically into the "avec" module/type and look for "Vec" inside it.

In the second example, you just look at everything inside the matching "vec" parent (so that maybe return a lot of things with a bad order).

Of course, both features could be used at the same time like: hello::"avec"::.

Second idea

Another idea that came out was to be able to look at functions based on their arguments.

Third idea

Having reverse search: instead of looking for something, you'd look for anything that isn't this thing. However, it wouldn't be on the text search itself but on the items filtering. For example: "!struct:Vec".

cc @rust-lang/rustdoc

@GuillaumeGomez GuillaumeGomez added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Oct 26, 2019
@GuillaumeGomez GuillaumeGomez self-assigned this Oct 26, 2019
@jyn514 jyn514 added the A-type-based-search Area: Searching rustdoc pages using type signatures label Aug 25, 2020
@GuillaumeGomez GuillaumeGomez removed their assignment Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-based-search Area: Searching rustdoc pages using type signatures T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants