/// Calculates the size in bytes of a `QueueWithReservation` holding the
/// given items.
///
/// Time complexity: O(num_messages).
Calculates the size in bytes of a `QueueWithReservation` holding the
given items.


Calculates the size in bytes of a ` QueueWithReservation ` holding the given items .
fn size_bytes(queue: &VecDeque<Arc<T>>) -> usize {
        size_of::<Self>()
            + queue
                .iter()
                .map(|m| Self::message_size_bytes(m))
                .sum::<usize>()
    }
fn size_bytes ( queue : & VecDeque < Arc < T > > ) -> usize { size_of :: < Self > ( ) + queue . iter ( ) . map ( | m | Self :: message_size_bytes ( m ) ) . sum :: < usize > ( ) }
Calculates the size in bytes of a `QueueWithReservation` holding the
given items.
Calculates the size in bytes of a ` QueueWithReservation ` holding the given items .
queue
&VecDeque<Arc<T>>