[][src]Function uclicious_libucl_sys::ucl_array_replace_index

pub unsafe extern "C" fn ucl_array_replace_index(
    top: *mut ucl_object_t,
    elt: *mut ucl_object_t,
    index: c_uint
) -> *mut ucl_object_t

Replace an element in an array with a different element, returning the object that was replaced. This object is not released, caller must unref the returned object when it is no longer needed. @param top destination object (must be of type UCL_ARRAY) @param elt element to append (must NOT be NULL) @param index array index in destination to overwrite with elt @return object that was replaced or NULL if index is not found