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
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
- 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 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