pub fn remove(&mut self, idx: usize) {
        unsafe {
            let n_args = glib_ffi::g_strv_length(*self.ptr);
            assert!((n_args as usize) == self.items.len());
            assert!((idx as u32) < n_args);

            self.items.remove(idx);

            glib_ffi::g_free(((*self.ptr).offset(idx as isize)) as *mut c_void);

            for i in (idx as u32)..n_args - 1 {
                ptr::write(
                    (*self.ptr).offset(i as isize),
                    *(*self.ptr).offset((i + 1) as isize),
                )
            }
            ptr::write((*self.ptr).offset((n_args - 1) as isize), ptr::null_mut());
        }
    }
// remove the item at index `idx` and shift the raw array
remove the item at index `idx` and shift the raw array
remove the item at index ` idx ` and shift the raw array
pub fn remove(&mut self, idx: usize) {
        unsafe {
            let n_args = glib_ffi::g_strv_length(*self.ptr);
            assert!((n_args as usize) == self.items.len());
            assert!((idx as u32) < n_args);
            self.items.remove(idx);
            glib_ffi::g_free(((*self.ptr).offset(idx as isize)) as *mut c_void);
            for i in (idx as u32)..n_args - 1 {
                ptr::write(
                    (*self.ptr).offset(i as isize),
                    *(*self.ptr).offset((i + 1) as isize),
                )
            }
            ptr::write((*self.ptr).offset((n_args - 1) as isize), ptr::null_mut());
        }
    }
pub fn remove ( & mut self , idx : usize ) { unsafe { let n_args = glib_ffi :: g_strv_length ( * self . ptr ) ; assert ! ( ( n_args as usize ) self items len ( ) ) ; assert ! ( ( idx as u32 ) n_args ) ; self . items . remove ( idx ) ; glib_ffi :: g_free ( ( ( * self . ptr ) . offset ( idx as isize ) ) as * mut c_void ) ; for i in ( idx as u32 ) .. n_args - 1 { ptr :: write ( ( * self . ptr ) . offset ( i as isize ) , * ( * self . ptr ) . offset ( ( i + 1 ) as isize ) , ) } ptr :: write ( ( * self . ptr ) . offset ( ( n_args - 1 ) as isize ) , ptr :: null_mut ( ) ) ; } }
remove the item at index `idx` and shift the raw array
remove the item at index ` idx ` and shift the raw array
&mut self
idx
usize
&mut self
idx
usize