Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Think about sorting trait/impl methods #183

Open
djc opened this issue Oct 3, 2017 · 0 comments
Open

Think about sorting trait/impl methods #183

djc opened this issue Oct 3, 2017 · 0 comments

Comments

@djc
Copy link

djc commented Oct 3, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants