The guidelines below were approved by RFC #199.
For a container with elements of type U`U`, iterator methods should be named:
fn iter(&self) -> T // where T implements Iterator<&U> fn iter_mut(&mut self) -> T // where T implements Iterator<&mut U> fn into_iter(self) -> T // where T implements Iterator<U>
The default iterator variant yields shared references &U`&U`.
The guidelines below were approved by RFC #344.
The name of an iterator type should be the same as the method that produces the iterator.
For example:
iter`itershould yield an` should yield an Iter`Iter`iter_mut`iter_mutshould yield an` should yield an IterMut`IterMut`into_iter`into_itershould yield an` should yield an IntoIter`IntoIter`keys`keysshould yield` should yield Keys`Keys`These type names make the most sense when prefixed with their owning module,
e.g. vec::IntoIter`vec::IntoIter`.