-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
rustdoc: Searching for types with generics #86915
Copy link
Copy link
Closed
Labels
A-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureA-type-based-searchArea: Searching rustdoc pages using type signaturesArea: Searching rustdoc pages using type signaturesC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-rustdoc-searchArea: Rustdoc's search featureArea: Rustdoc's search featureA-type-based-searchArea: Searching rustdoc pages using type signaturesArea: Searching rustdoc pages using type signaturesC-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Over here rust-lang/rfcs#658 I read that rustdoc is able to search for type signatures which works okay-ish when looking for rather primitive type signatures. However I think it would be cool if one could search for generic types (which is also possible in the "role model" of this feature, hoogle). For example on
Result<T>andOption<T>there are lots of conversion functions into other types that aren't searchable at the moment due to their generic nature.For example on
Option<T>there areand more that are not searchable at the moment by a type signature but all named very similarly so an inexperienced user could easily end up looking around for the proper variant for quite a bit. If the type signature search would support generics the user could just type out the more precise signature they are looking for and easily find the proper variant.