Skip to content

Naming guidelines recommend into_iter() method instead of IntoIterator trait #206

Open
@Aloso

Description

@Aloso

C-ITER recommends implementing three methods for collections: iter(), iter_mut() and into_iter(). It fails to mention that into_iter() can (and probably should?) be implemented by implementing the IntoIterator 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-nominatedIndicates that an issue has been nominated for discussion during a team meeting.acceptedAn amendment that's been accepted and can be appliedamendmentAmendments to existing guidelines

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions