Anders429 / Anders429/brood

Implement `Extend` for `World`

Abierto
#14 2 comentarios 0 reacciones 0 asignados Ver en GitHub
A - Storage C - Enhancement P - Low S - Blocked on Rust Feature S - Needs Investigation V - Minor Breaking Change
Lenguaje dominante
Rust
Estrellas
41
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

It may be possible to generically implement `Extend` for `World` in a generic way that allows for extending from any iterator that yields values implementing `Entity`. If this is found to be possible, `IntoIterator` could also be implemented for `Batch` (which still needs to be renamed, by the way), allowing `extend` to work with that `struct`.

One main issue is that our current `extend` method returns `EntityIdentifier`s corresponding to the inserted values. This would not be possible with the `Extend` trait. At the very least, however, `Batch` should be made to implement `IntoIterator`, and also should work with inputs besides `Vec`.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.