Closed
Description
When a specific implementation of a trait isn't commented the docs are inherited from the trait. It would be great if this fact was called out.
An example of why this is useful:
The current doc for Rc has:
- impl Clone for Rc
- fn clone(&self) -> Rc
- Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.
- fn clone(&self) -> Rc
The description doesn't make sense for Rc as you can't put an owned pointer in an Rc so the doc becomes confusing. If there were an indication that the doc was inherited it would be better.
- impl Clone for Rc
- fn clone(&self) -> Rc
doc inherited from trait Clone
- Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.
- fn clone(&self) -> Rc