pub fn pop(&mut self) -> Option<bool> {
        if self.len == 0 {
            return None;
        }
        // The subtraction can't underflow because self.len > 0.
        let v = self.get(self.len - 1);
        debug_assert!(v.is_some());
        let new_len = self.len - 1;
        self.truncate(new_len);
        v
    }
/// Removes the last element from the Vob and returns it, or `None` if it is empty.
///
/// # Examples
/// ```
/// use vob::Vob;
/// let mut v = Vob::new();
/// v.push(true);
/// assert_eq!(v.pop(), Some(true));
/// assert_eq!(v.pop(), None);
/// ```
Removes the last element from the Vob and returns it, or `None` if it is empty.
Removes the last element from the Vob and returns it or ` None ` if it is empty .
pub fn pop(&mut self) -> Option<bool> {
        if self.len == 0 {
            return None;
        }
        // The subtraction can't underflow because self.len > 0.
        let v = self.get(self.len - 1);
        debug_assert!(v.is_some());
        let new_len = self.len - 1;
        self.truncate(new_len);
        v
    }
pub fn pop ( & mut self ) -> Option < bool > { if self . len == 0 { return None ; } // The subtraction can't underflow because self.len > 0. let v = self . get ( self . len - 1 ) ; debug_assert ! ( v is_some ( ) ) ; let new_len = self . len - 1 ; self . truncate ( new_len ) ; v }
Removes the last element from the Vob and returns it, or `None` if it is empty.
Removes the last element from the Vob and returns it or ` None ` if it is empty .
&mut self
&mut self
examples
None