rust-embedded / rust-embedded/heapless

Enhancement/Feature: port upstream IndexMap methods such as shift_remove

Open
#557 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2k
Forks
253
Avg merge
1d 2h
Merged PRs (30d)
1

Description

In #321 it was mentioned that there were upstream methods from IndexMap that hadn't been ported yet, shift_remove in that particular case. I don't know if this is important enough to be considered for 1.0, but I thought I'd re-surface the issue for discussion.

retain being in-order does mean there are workarounds; I'm currently simulating shift_remove_index(0) with a combination of .first and .retain(|key| key != first_key)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing #321 and the upstream IndexMap methods, especially shift_remove, alongside heapless's existing retain and shift_remove_index behavior. Done means the desired methods and their scope for 1.0 are agreed, with behavior matching the upstream API.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.