pub fn pop(&mut self) -> Option<T> {
        let buffer: &[T] = unsafe { self.buffer.as_ref() };

        if self.len != 0 {
            self.len -= 1;
            let item = unsafe { ptr::read(&buffer[self.len]) };
            Some(item)
        } else {
            None
        }
    }
/// Removes the last element from a vector and return it, or `None` if it's empty
Removes the last element from a vector and return it, or `None` if it's empty
Removes the last element from a vector and return it or ` None ` if it ' s empty
pub fn pop(&mut self) -> Option<T> {
        let buffer: &[T] = unsafe { self.buffer.as_ref() };
        if self.len != 0 {
            self.len -= 1;
            let item = unsafe { ptr::read(&buffer[self.len]) };
            Some(item)
        } else {
            None
        }
    }
pub fn pop ( & mut self ) -> Option < T > { let buffer : & [ T ] = unsafe { self . buffer . as_ref ( ) } ; if self . len != 0 { self . len -= 1 ; let item = unsafe { ptr :: read ( & buffer [ self . len ] ) } ; Some ( item ) } else { None } }
Removes the last element from a vector and return it, or `None` if it's empty
Removes the last element from a vector and return it or ` None ` if it ' s empty
&mut self
&mut self