Have a separate Constructors
section in rustdoc for each type that shows functions that can be used to construct the type.
#122725
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
When you are reading the documentation of a type sometimes it is difficult to find out, how one should actually create an instance of that type from the documentation.
Having a separate
Constructors
section for each type, would be useful to navigate the documentation and understand how a type should be created (by calling what method/function) in unknown/unfamiliar crates.Related pr: #107926
The text was updated successfully, but these errors were encountered: