QueryCombinationIter should not implement ExactSizeIterator #5846
Labels
A-ECS
Entities, components, systems, and events
C-Bug
An unexpected or incorrect behavior
C-Code-Quality
A section of code that is hard to understand or change
D-Trivial
Nice and easy! A great choice to get started with Bevy
M-Needs-Migration-Guide
A breaking change to Bevy's public API that needs to be noted in a migration guide
Bevy version
QueryCombinationIter
can very easily have a length greater thanusize::MAX
, therefore shouldn't implementExactSizeIterator
.Know length iterators with potential greater-than-
usize::MAX
length instd::iter
anditertools
do not implementExactSizeIterator
, because the value oflen
cannot be accurate if the length exceedsusize
. (iter::Repeat
,iter::Intersperse
,itertools::Product
,itertools::Combinations
do not implementExactSizeIterator
)The text was updated successfully, but these errors were encountered: