Naming guidelines recommend into_iter()
method instead of IntoIterator
trait
#206
Labels
accepted
An amendment that's been accepted and can be applied
amendment
Amendments to existing guidelines
I-nominated
Indicates that an issue has been nominated for discussion during a team meeting.
C-ITER recommends implementing three methods for collections:
iter()
,iter_mut()
andinto_iter()
. It fails to mention thatinto_iter()
can (and probably should?) be implemented by implementing theIntoIterator
trait.Additionally, the Examples section has a broken link to https://doc.rust-lang.org/std/vec/struct.Vec.html#method.into_iter instead of https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-IntoIterator.
The text was updated successfully, but these errors were encountered: