Implement `std::iter::Sum` for color types

Open Beginner friendly
#24,946 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Search the color types and existing std::iter trait implementations in the Rust source, then inspect nearby tests or examples for color arithmetic. Implement Sum consistently for the relevant color types and add or update tests showing that an iterator of colors can be summed successfully.

Written by the indexing model from the issue text.

Description

A-Color C-Usability D-Straightforward S-Needs-Design X-Contentious

What problem does this solve or what need does it fill?

This allows you to use .sum() on a list of colors.

It should be a simple change; I may be willing to contribute if I'm confident it's easy enough.

Dominant language
Rust
Stars
48.3k
Forks
4.9k
Avg merge
3d 17h
Merged PRs (30d)
172

Contributor guide

Open the contributing guide

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.

More from bevyengine/bevy

All issues in bevyengine/bevy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.