pub fn iter<'a>(&'a self) -> impl std::iter::Iterator<Item = (StreamIndex, &T)> + 'a {
        (self.begin.get()..)
            .zip(self.queue.iter())
            .map(|(index, item)| (StreamIndex::from(index), item))
    }
/// Returns an iterator over the items in the queue, with their indices.
Returns an iterator over the items in the queue, with their indices.
Returns an iterator over the items in the queue with their indices .
pub fn iter<'a>(&'a self) -> impl std::iter::Iterator<Item = (StreamIndex, &T)> + 'a {
        (self.begin.get()..)
            .zip(self.queue.iter())
            .map(|(index, item)| (StreamIndex::from(index), item))
    }
pub fn iter < ' a > ( & ' a self ) -> impl std :: iter :: Iterator < Item = ( StreamIndex , & T ) > + ' a { ( self . begin . get ( ) .. ) . zip ( self . queue . iter ( ) ) . map ( | ( index , item ) | ( StreamIndex :: from ( index ) , item ) ) }
Returns an iterator over the items in the queue, with their indices.
Returns an iterator over the items in the queue with their indices .
&'a self
&'a self