Skip to content

VecMap::into_iter shouldn't be taking a &mut self #21328

Closed
@erickt

Description

@erickt

cc @gankro

I'm in the process of IntoIter-ifying the collections, and I've discovered that the VecMap::into_iter takes a &mut self instead of the convention of into_* consuming the value. It's also marked stable, even though the type itself is marked unstable. Should this instead be a candidate for the drain method discussed in the collection reform trait?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions