rust-embedded / rust-embedded/heapless
Enhancement/Feature: port upstream IndexMap methods such as shift_remove
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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