Skip to content

RustDoc: Search should "follow" trait generics for parameter and return tabs #56386

Closed
@akatechis

Description

@akatechis

Repost from rust-lang/docs.rs#266

If I search the name of a trait, it would be nice to see matches for parameter and return tabs for functions that include that trait as a trait bound.

In the screenshot below, State is a trait of the kiss3d crate, and the render_with_state shown has <S: State> trait bounds on it, so it would be nice to see that function under the "In parameters" tab as well. Ditto for functions where the trait object is returned.

image

Metadata

Metadata

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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions