Redesign `druid::widget::ListIter` trait?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9.7k
- Forks
- 565
- PR merge metrics
- No merged PRs in 30d
Description
Currently this trait is not very efficient when you want to implement `ListIter<(K, V)>` on `OrdMap` or `HashMap`, as you have to [clone](https://github.com/linebender/druid/pull/1033/files#diff-0bb03eb637d659cef6bf00945fc260762de7365f068a308ee92a633fc2cc4f0bR130) the keys and values each time you call the callback `cb`.
Contributor guide
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 with the druid::widget::ListIter trait and the linked PR 1033 implementation. Compare how OrdMap and HashMap would use the callback cb, focusing on the per-callback cloning described in the issue. Done means a trait design that avoids those repeated key and value clones for these implementations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- performance
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100