rustdoc icon indicating copy to clipboard operation
rustdoc copied to clipboard

Think about sorting trait/impl methods

Open djc opened this issue 8 years ago • 0 comments

As mentioned at RustFest, it would be nice if impl with lots of methods would be more organized. One way to do this would be to (make it possible to) sort by usage of self, so:

  • self-less methods (like constructors, class/static methods)
  • &self methods (like getters)
  • &mut self methods (like setters)
  • self methods (methods taking over ownership)

I think this would be particularly useful if you kind of know what you want to do, but don't know the exact name for what you're looking for.

djc avatar Oct 03 '17 19:10 djc