You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So rustdoc does not list the .iter() method on the page for Vec itself.
This might be extremely confusing for newcomers.
Actually impl<T> Deref for Vec<T> type Target = [T]
And impl<T> SliceExt for [T]
And SliceExt defines the .iter() method.
So this does all make sense, but I don’t think a newcomer can wrap his head around that. I spent 5 minutes looking this up myself after I introduced Rust to a group of people.
The text was updated successfully, but these errors were encountered:
We have an issue open already to improve rustdoc's handling of Deref, so I'm gonna give this a close.
I 100% agree with you that this is a current pain point. The beta cycle is going to be dedicated to polish, and this is high on my list. But I don't want to keep two issues open. Thank you!
So rustdoc does not list the
.iter()
method on the page for Vec itself.This might be extremely confusing for newcomers.
Actually
impl<T> Deref for Vec<T> type Target = [T]
And
impl<T> SliceExt for [T]
And SliceExt defines the
.iter()
method.So this does all make sense, but I don’t think a newcomer can wrap his head around that. I spent 5 minutes looking this up myself after I introduced Rust to a group of people.
The text was updated successfully, but these errors were encountered: