Skip to content

Add owning IntoIterator for IndexSet #627

@notABot101010

Description

@notABot101010

Hello,
I was trying to get an owning iterator from an IndexSet, but it seems that the it's currently not implemented.

It's a little bit surprising as IndexSet seems to be basically a wrapper for IndexMap which has an owning implementation for IntoIterator here: https://docs.rs/heapless/latest/heapless/index_map/struct.IndexMap.html#impl-IntoIterator-for-IndexMap%3CK,+V,+S,+N%3E

I would like to add support for an owning IntoIterator for IndexSet, for the keys of the set.

Our use case is to iterate over elements of a deduplicated set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions