Skip to content

rustdoc search: find types containing some other type #130204

Closed
@lolbinarycat

Description

@lolbinarycat

when searching through crates with many complicated and nested types, it is often useful to know how you can get an instance of some type. this is partially covered by the -> SomeType syntax, but in codebases where you are expected to directly access fields instead of using getter methods, this is insufficient.

there should be a syntax to search for all types that use a given type in a field (not necessarily a struct, it could also be a union or enum).

tangentially related: #118912

Metadata

Metadata

Assignees

Labels

A-rustdoc-searchArea: Rustdoc's search featureC-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