mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 22:50:19 +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. |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml |