pub fn dequeue_slice(&mut self, data: &mut [T]) -> usize
            where T: Copy {
        let (size_1, data) = self.dequeue_many_with(|buf| {
            let size = cmp::min(buf.len(), data.len());
            data[..size].copy_from_slice(&buf[..size]);
            (size, &mut data[size..])
        });
        let (size_2, ()) = self.dequeue_many_with(|buf| {
            let size = cmp::min(buf.len(), data.len());
            data[..size].copy_from_slice(&buf[..size]);
            (size, ())
        });
        size_1 + size_2
    }
/// Dequeue as many elements from the buffer into the given slice as possible,
/// and return the amount of elements that could fit.
// #[must_use]
Dequeue as many elements from the buffer into the given slice as possible,
and return the amount of elements that could fit.
Dequeue as many elements from the buffer into the given slice as possible and return the amount of elements that could fit .
pub fn dequeue_slice(&mut self, data: &mut [T]) -> usize
            where T: Copy {
        let (size_1, data) = self.dequeue_many_with(|buf| {
            let size = cmp::min(buf.len(), data.len());
            data[..size].copy_from_slice(&buf[..size]);
            (size, &mut data[size..])
        });
        let (size_2, ()) = self.dequeue_many_with(|buf| {
            let size = cmp::min(buf.len(), data.len());
            data[..size].copy_from_slice(&buf[..size]);
            (size, ())
        });
        size_1 + size_2
    }
pub fn dequeue_slice ( & mut self , data : & mut [ T ] ) -> usize where T : Copy { let ( size_1 , data ) = self . dequeue_many_with ( | buf | { let size = cmp :: min ( buf . len ( ) , data . len ( ) ) ; data [ .. size ] . copy_from_slice ( & buf [ .. size ] ) ; ( size , & mut data [ size .. ] ) } ) ; let ( size_2 , ( ) ) = self . dequeue_many_with ( | buf | { let size = cmp :: min ( buf . len ( ) , data . len ( ) ) ; data [ .. size ] . copy_from_slice ( & buf [ .. size ] ) ; ( size , ( ) ) } ) ; size_1 + size_2 }
Dequeue as many elements from the buffer into the given slice as possible,
and return the amount of elements that could fit.
Dequeue as many elements from the buffer into the given slice as possible and return the amount of elements that could fit .
&mut self
data
&mut [T]
&mut self
data
&mut [T]
[must_use]
None