Open pickfire opened 3 years ago
@pickfire it's there, it's just called slice::iter
because it comes from the Deref impl.
Are you suggested rustdoc should show Deref methods in search? That seems useful, but a little complicated ... Search is already pretty buggy.
Yeah, that would be good but do seemed a little bit complicated, the search for deref could have a lower score or shown with some sort of visual to know it's a Deref
.
At least I didn't noticed that it's slice
because the doc page is quite long and I don't know which function does it impl
for. Quite a few times I wonder which impl
I am looking at, scroll up tons of page and saw the wrong one.
Adding an alias works, if it's acceptable to solve this as a one-off.
Seems silly to do this for every single slice method. I think we should do this consistently if we do it at all.
Yes, if we do it it should be added for everything that implements Deref
for all types.
related/possible duplicate: #63080
In rust doc search, I can't find
Vec::iter
althoughiter
is available inVec
.https://doc.rust-lang.org/std/index.html?search=vec%3A%3Aiter