Implement `Extend` for `World`
- Ngôn ngữ chính
- Rust
- Star
- 41
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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`.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.