mirror of
https://github.com/bevyengine/bevy
synced 2024-12-28 22:13:08 +00:00
f2b545049c
# Objective Most of our `Iterator` impls satisfy the requirements of `std::iter::FusedIterator`, which has internal specialization that optimizes `Interator::fuse`. The std lib iterator combinators do have a few that rely on `fuse`, so this could optimize those use cases. I don't think we're using any of them in the engine itself, but beyond a light increase in compile time, it doesn't hurt to implement the trait. ## Solution Implement the trait for all eligible iterators in first party crates. Also add a missing `ExactSizeIterator` on an iterator that could use it. |
||
---|---|---|
.. | ||
access.rs | ||
fetch.rs | ||
filter.rs | ||
iter.rs | ||
mod.rs | ||
state.rs |