pub fn truncate(&mut self, len: usize) {
        if len + 1 >= self.indices.len() {
            return;
        }

        let size = self.indices[len];
        self.indices.truncate(len + 1);
        self.data.truncate(size);
    }
/// Shortens the `Nested`, keeping the first len elements and dropping the rest.
///
/// If len is greater than the vector's current length, this has no effect.
///
/// Note that this method has no effect on the allocated capacity of the vector.
Shortens the `Nested`, keeping the first len elements and dropping the rest.
If len is greater than the vector's current length, this has no effect.

Note that this method has no effect on the allocated capacity of the vector.
Shortens the ` Nested ` keeping the first len elements and dropping the rest . If len is greater than the vector ' s current length this has no effect . Note that this method has no effect on the allocated capacity of the vector .
pub fn truncate(&mut self, len: usize) {
        if len + 1 >= self.indices.len() {
            return;
        }
        let size = self.indices[len];
        self.indices.truncate(len + 1);
        self.data.truncate(size);
    }
pub fn truncate ( & mut self , len : usize ) { if len + 1 >= self . indices . len ( ) { return ; } let size = self . indices [ len ] ; self . indices . truncate ( len + 1 ) ; self . data . truncate ( size ) ; }
Shortens the `Nested`, keeping the first len elements and dropping the rest.
Shortens the ` Nested ` keeping the first len elements and dropping the rest .
&mut self
len
usize
&mut self
len
usize