-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
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.
Description
It becomes very hard to read certain signatures at the moment. A good example is HashMap::get
:
fn get<Sized? Q>(&self, k: &Q) -> Option<&V> where Q: Hash<S> + Eq + BorrowFrom<K>
This would be a lot easier to read (assuming ?Sized
lands) like this:
fn get(&self, k: &Q) -> Option<&V>
where Q: ?Sized + Hash<S> + Eq + BorrowFrom<K>
Reasoning being that right now the important part (return value) is lost somewhere in the middle whereas the trait bounds (which very often are not as important) are on the easier to read, end of the line.
Metadata
Metadata
Assignees
Labels
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.