pub fn split_off(&mut self, at: usize) -> Nested<T> {
        if at == self.len() {
            return Nested::new();
        }
        assert!(at < self.len());
        let mut new_indices = self.indices.split_off(at + 1);
        let offset = self.indices[at];
        let new_data = self.data.split_off(offset);
        for i in &mut new_indices {
            *i -= offset;
        }
        new_indices.insert(0, 0);
        Nested {
            indices: new_indices,
            data: new_data,
        }
    }
/// Splits the collection into two at the given index.
///
/// Returns a newly allocated Self. self contains elements [0, at), and the returned Self
/// contains elements [at, len).
///
/// Note that the capacity of self does not change.
Splits the collection into two at the given index.
Returns a newly allocated Self. self contains elements [0, at), and the returned Self
contains elements [at, len).

Note that the capacity of self does not change.
Splits the collection into two at the given index . Returns a newly allocated Self . self contains elements [ 0 at ) and the returned Self contains elements [ at len ) . Note that the capacity of self does not change .
pub fn split_off(&mut self, at: usize) -> Nested<T> {
        if at == self.len() {
            return Nested::new();
        }
        assert!(at < self.len());
        let mut new_indices = self.indices.split_off(at + 1);
        let offset = self.indices[at];
        let new_data = self.data.split_off(offset);
        for i in &mut new_indices {
            *i -= offset;
        }
        new_indices.insert(0, 0);
        Nested {
            indices: new_indices,
            data: new_data,
        }
    }
pub fn split_off ( & mut self , at : usize ) -> Nested < T > { if at == self . len ( ) { return Nested :: new ( ) ; } assert ! ( at self len ( ) ) ; let mut new_indices = self . indices . split_off ( at + 1 ) ; let offset = self . indices [ at ] ; let new_data = self . data . split_off ( offset ) ; for i in & mut new_indices { * i -= offset ; } new_indices . insert ( 0 , 0 ) ; Nested { indices : new_indices , data : new_data , } }
Splits the collection into two at the given index.
Splits the collection into two at the given index .
&mut self
at
usize
&mut self
at
usize