3 ms·
cargo doc does do that already, not sure what you mean. IDEs should also be autocompleting trait impls.
by staticassertion 7y ago
cargo doc does do that already, not sure what you mean.
IDEs should also be autocompleting trait impls.
- skybrian 7y agoFor example, on std:String, the + operator is hidden away in the Add trait implementation. (In this case it's reasonably obvious anyway.)
- staticassertion 7y agoAh, interesting. I haven't really noticed that sort of thing myself.
- rhodysurf 7y agoMy experience is that it will only autocomplete traits that you have imported. Which sucks because what if I don’t know what traits my type uses? It’s crazy
- rakenodiax 7y agoIntelliJ will suggest unimported trait methods and will automatically import the required trait if it is selected.