pub fn dequeue_many_with<'b, R, F>(&'b mut self, f: F) -> (usize, R)
            where F: FnOnce(&'b mut [T]) -> (usize, R) {
        let capacity = self.capacity();
        let max_size = cmp::min(self.len(), capacity - self.read_at);
        let (size, result) = f(&mut self.storage[self.read_at..self.read_at + max_size]);
        assert!(size <= max_size);
        self.read_at = (self.read_at + size) % capacity;
        self.length -= size;
        (size, result)
    }
/// Call `f` with the largest contiguous slice of allocated buffer elements,
/// and dequeue the amount of elements returned by `f`.
///
/// # Panics
/// This function panics if the amount of elements returned by `f` is larger
/// than the size of the slice passed into it.
Call `f` with the largest contiguous slice of allocated buffer elements,
and dequeue the amount of elements returned by `f`.
Call ` f ` with the largest contiguous slice of allocated buffer elements and dequeue the amount of elements returned by ` f ` .
pub fn dequeue_many_with<'b, R, F>(&'b mut self, f: F) -> (usize, R)
            where F: FnOnce(&'b mut [T]) -> (usize, R) {
        let capacity = self.capacity();
        let max_size = cmp::min(self.len(), capacity - self.read_at);
        let (size, result) = f(&mut self.storage[self.read_at..self.read_at + max_size]);
        assert!(size <= max_size);
        self.read_at = (self.read_at + size) % capacity;
        self.length -= size;
        (size, result)
    }
pub fn dequeue_many_with < ' b , R , F > ( & ' b mut self , f : F ) -> ( usize , R ) where F : FnOnce ( & ' b mut [ T ] ) -> ( usize , R ) { let capacity = self . capacity ( ) ; let max_size = cmp :: min ( self . len ( ) , capacity - self . read_at ) ; let ( size , result ) = f ( & mut self . storage [ self . read_at .. self . read_at + max_size ] ) ; assert ! ( size max_size ) ; self . read_at = ( self . read_at + size ) % capacity ; self . length -= size ; ( size , result ) }
Call `f` with the largest contiguous slice of allocated buffer elements,
and dequeue the amount of elements returned by `f`.
Call ` f ` with the largest contiguous slice of allocated buffer elements and dequeue the amount of elements returned by ` f ` .
&'b mut self
f
F
&'b mut self
f
F
panics
This function panics if the amount of elements returned by `f` is larger
than the size of the slice passed into it.
This function panics if the amount of elements returned by ` f ` is larger than the size of the slice passed into it .