Add WriteStorage::take
Aperta
feature-request
- Lingua principale
- Rust
- Stelle
- 2.6k
- Fork
- 215
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## Description
It will remove the component from the entity and return it (not by reference), similar to Option::take.
## Motivation
This avoids cloning the component if it will be removed soon anyway. This allows cleaner code.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.