fn drop(&mut self) {
        unsafe {
            // Make sure that the entire tmp storage is consumed. Since there are no uninitialized
            // spaces before dest_pos, and no uninitialized space after first_pos, this will ensure
            // that there are no uninitialized spaces inside the slice after we drop. Thus, the
            // function is safe.
            if self.second_pos >= 0 {
                copy_nonoverlapping_backwards(
                    md_as_inner(&self.tmp).get_unchecked(self.second_pos as usize),
                    self.list.get_unchecked_mut(self.dest_pos as usize),
                    self.second_pos as usize + 1,
                );
            }
        }
    }
/// Copy all remaining items in the temporary storage into the list.
/// If the comparator panics, the result will not be sorted, but will still
/// contain no duplicates or uninitialized spots.
Copy all remaining items in the temporary storage into the list.
If the comparator panics, the result will not be sorted, but will still
contain no duplicates or uninitialized spots.
Copy all remaining items in the temporary storage into the list . If the comparator panics the result will not be sorted but will still contain no duplicates or uninitialized spots .
fn drop(&mut self) {
        unsafe {
            // Make sure that the entire tmp storage is consumed. Since there are no uninitialized
            // spaces before dest_pos, and no uninitialized space after first_pos, this will ensure
            // that there are no uninitialized spaces inside the slice after we drop. Thus, the
            // function is safe.
            if self.second_pos >= 0 {
                copy_nonoverlapping_backwards(
                    md_as_inner(&self.tmp).get_unchecked(self.second_pos as usize),
                    self.list.get_unchecked_mut(self.dest_pos as usize),
                    self.second_pos as usize + 1,
                );
            }
        }
    }
fn drop ( & mut self ) { unsafe { // Make sure that the entire tmp storage is consumed. Since there are no uninitialized // spaces before dest_pos, and no uninitialized space after first_pos, this will ensure // that there are no uninitialized spaces inside the slice after we drop. Thus, the // function is safe. if self . second_pos >= 0 { copy_nonoverlapping_backwards ( md_as_inner ( & self . tmp ) . get_unchecked ( self . second_pos as usize ) , self . list . get_unchecked_mut ( self . dest_pos as usize ) , self . second_pos as usize + 1 , ) ; } } }
Copy all remaining items in the temporary storage into the list.
Copy all remaining items in the temporary storage into the list .
&mut self
&mut self