Open
Description
Currently, according to the help menu,
Prefix searches with a type followed by a colon (e.g., fn:) to restrict the search to a given item kind.
Accepted kinds are: fn, mod, struct, enum, trait, type, macro, and const.
However, fields are found by the search, it's just not possible to filter to only include them. It would be useful to be able to do so.
rust version: rustc 1.56.0-nightly (d3e2578 2021-08-21)
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
dns2utf8 commentedon Sep 5, 2021
I did a search for

fn:parse
and the results it returned are functions that are named similareley:https://doc.rust-lang.org/nightly/std/?search=fn%3Aparse
What query did you use? And where did you host it?
Cheers,
Stefan
cc: @rustdoc @GuillaumeGomez
GuillaumeGomez commentedon Sep 5, 2021
@dns2utf8: I think they meant that they wanted something like:
Then search it like this:
dns2utf8 commentedon Sep 5, 2021
Ah, now I understand 👍
GuillaumeGomez commentedon Sep 5, 2021
I guess a
variant
filter would be nice too, or maybe we just considervariant
andfield
as the same thing. In any case, it'll have to wait for the rework of the rustdoc search I'm working on (which is currently waiting for #88268 to be merged)..
#118912lolbinarycat commentedon Sep 27, 2024
structfield
andvariant
do seem to exist, but they aren't listed in the quick help menu.