WhyAreAllTheseTaken / WhyAreAllTheseTaken/static-array

Use `<Box<[T; N]> as IntoIterator>::IntoIter` to avoid an expensive copy when calling `into_iter` on HeapArray.

Open Beginner friendly
#2 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

into_iter should use the new implementation in https://github.com/rust-lang/rust/pull/134021 to avoid an expensive array copy.

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 at HeapArray's into_iter implementation and compare it with the approach described in rust-lang/rust#134021. Verify that iteration no longer performs the expensive array copy, then run the crate's existing tests to confirm behavior is unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.