/// Pop some elements into the buffer
Pop some elements into the buffer
Pop some elements into the buffer
pub fn pop_many(&mut self, buf: &mut [T]) -> usize {
        let count = usize::min(self.len(), buf.len());
        for p in buf.iter_mut().take(count) {
            *p = self.pop().unwrap();
        }
        count
    }
pub fn pop_many ( & mut self , buf : & mut [ T ] ) -> usize { let count = usize :: min ( self . len ( ) , buf . len ( ) ) ; for p in buf . iter_mut ( ) . take ( count ) { * p = self . pop ( ) . unwrap ( ) ; } count }
Pop some elements into the buffer
Pop some elements into the buffer
&mut self
buf
&mut [T]