fn remove_last_n(&mut self, n:usize) -> bool {
        let vec      = self.as_mut();
        let new_size = vec.len().checked_sub(n);
        new_size.map(|new_size| vec.truncate(new_size)).is_some()
    }
/// Removes the last `n` elements from the vector. Returns true if the elements were removed.
Removes the last `n` elements from the vector. Returns true if the elements were removed.
Removes the last ` n ` elements from the vector . Returns true if the elements were removed .
fn remove_last_n(&mut self, n:usize) -> bool {
        let vec      = self.as_mut();
        let new_size = vec.len().checked_sub(n);
        new_size.map(|new_size| vec.truncate(new_size)).is_some()
    }
fn remove_last_n ( & mut self , n : usize ) -> bool { let vec = self . as_mut ( ) ; let new_size = vec . len ( ) . checked_sub ( n ) ; new_size . map ( | new_size | vec . truncate ( new_size ) ) . is_some ( ) }
Removes the last `n` elements from the vector.
Removes the last ` n ` elements from the vector .
&mut self
n
usize
&mut self
n
usize