pub fn pop(&mut self) -> Option<T> {
        if self.len == 0 {
            return None;
        }
        let new_len = self.len - 1;
        let val = unsafe { ptr::read(self.inner_mut().body[new_len].as_ptr()) };
        unsafe { self.shrink(new_len) };
        self.len = new_len;
        Some(val)
    }
/// Pop a value from the end of the vec, if there is one.
Pop a value from the end of the vec, if there is one.
Pop a value from the end of the vec if there is one .
pub fn pop(&mut self) -> Option<T> {
        if self.len == 0 {
            return None;
        }
        let new_len = self.len - 1;
        let val = unsafe { ptr::read(self.inner_mut().body[new_len].as_ptr()) };
        unsafe { self.shrink(new_len) };
        self.len = new_len;
        Some(val)
    }
pub fn pop ( & mut self ) -> Option < T > { if self . len == 0 { return None ; } let new_len = self . len - 1 ; let val = unsafe { ptr :: read ( self . inner_mut ( ) . body [ new_len ] . as_ptr ( ) ) } ; unsafe { self . shrink ( new_len ) } ; self . len = new_len ; Some ( val ) }
Pop a value from the end of the vec, if there is one.
Pop a value from the end of the vec if there is one .
&mut self