pub fn pop(&mut self) -> Option<T> {
        if self.w > self.r {
            let idx = self.r % SZ;
            let item: T = unsafe {
                let slot = self.buf.get_unchecked(idx);
                slot.as_ptr().read()
            };
            self.r += 1;
            Some(item)
        } else {
            None
        }
    }
/// Try to pop an item from the tail of the ring buffer.
Try to pop an item from the tail of the ring buffer.
Try to pop an item from the tail of the ring buffer .
pub fn pop(&mut self) -> Option<T> {
        if self.w > self.r {
            let idx = self.r % SZ;
            let item: T = unsafe {
                let slot = self.buf.get_unchecked(idx);
                slot.as_ptr().read()
            };
            self.r += 1;
            Some(item)
        } else {
            None
        }
    }
pub fn pop ( & mut self ) -> Option < T > { if self . w > self . r { let idx = self . r % SZ ; let item : T = unsafe { let slot = self . buf . get_unchecked ( idx ) ; slot . as_ptr ( ) . read ( ) } ; self . r += 1 ; Some ( item ) } else { None } }
Try to pop an item from the tail of the ring buffer.
Try to pop an item from the tail of the ring buffer .
&mut self
&mut self