bevyengine / bevyengine/bevy

Better `Dynamic*` mutable iteration

Open
#14,846 1 comment 0 reactions 0 assignees View on GitHub
A-Reflection C-Feature D-Modest
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

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

Mutating all fields/key-value pairs/entries/etc. in a dynamic something isn't "easily" doable yet.

## What solution would you like?

Add `IterFieldsMut` next to `IterFields` and for all the other things too.

## What alternative(s) have you considered?

Writing it my own.

## Additional context

It's not as easy to do as the non-mutable ones, because of lifetimes. We must enforce that an index can't reference the same object and trix with unsafe code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.