Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exact sized event iterators (bevyengine#3863)
# Objective - Remove `Resource` binding on events, introduce a new `Event` trait - Ensure event iterators are `ExactSizeIterator` ## Solution - Builds on bevyengine#2382 and bevyengine#2969 ## Changelog - Events<T>, EventWriter<T>, EventReader<T> and so on now require that the underlying type is Event, rather than Resource. Both of these are trivial supertraits of Send + Sync + 'static with universal blanket implementations: this change is currently purely cosmetic. - Event reader iterators now implement ExactSizeIterator
- Loading branch information