Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
staticassertion
· 7y ago · 0 comments
cargo doc does do that already, not sure what you mean.
IDEs should also be autocompleting trait impls.
Comments
[–]
rhodysurf
7y ago
My 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 ago
IntelliJ will suggest unimported trait methods and will automatically import the required trait if it is selected.
[–]
skybrian
7y ago
For example, on std:String, the + operator is hidden away in the Add trait implementation. (In this case it's reasonably obvious anyway.)
[–]
staticassertion
OP
7y ago
Ah, interesting. I haven't really noticed that sort of thing myself.