Anders429 / Anders429/brood

Implement `Extend` for `World`

Đang mở
#14 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
A - Storage C - Enhancement P - Low S - Blocked on Rust Feature S - Needs Investigation V - Minor Breaking Change
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.