/// Allows us to manipulate the frames list like an iterator without consuming it and resetting its
/// display order counter.
impl<'a, T> Iterator for &'a mut ReadyFramesQueue<T> {
type Item = T;
/// Returns the next frame (if any) waiting to be dequeued.
fn next(&mut self) -> Option<T> {
self.queue.pop_front()
}
}
iter_mut() calls pop_front(), so it is actually not possible to iterate without removing items
The actual code does not seem to match the docs:
iter_mut()
callspop_front()
, so it is actually not possible to iterate without removing items